Class: SimpleTokenAuthentication::EntitiesManager

Inherits:
Object
  • Object
show all
Defined in:
lib/simple_token_authentication/entities_manager.rb

Instance Method Summary collapse

Instance Method Details

#find_or_create_entity(model) ⇒ Object



5
6
7
8
# File 'lib/simple_token_authentication/entities_manager.rb', line 5

def find_or_create_entity(model)
  @entities ||= {}
  @entities[model.name] ||= Entity.new(model)
end