Sha256: fb7ced4f351f145aba74f755b36e0d0bf7fd0f7c825d06cc7239b8a3a79c2ce3

Contents?: true

Size: 261 Bytes

Versions: 14

Compression:

Stored size: 261 Bytes

Contents

require 'simple_token_authentication/entity'

module SimpleTokenAuthentication
  class EntitiesManager
    def find_or_create_entity(model, model_alias=nil)
      @entities ||= {}
      @entities[model.name] ||= Entity.new(model, model_alias)
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
simple_token_authentication-1.18.1 lib/simple_token_authentication/entities_manager.rb
simple_token_authentication-1.18.0 lib/simple_token_authentication/entities_manager.rb
simple_token_authentication-1.17.0 lib/simple_token_authentication/entities_manager.rb
simple_token_authentication-1.16.0 lib/simple_token_authentication/entities_manager.rb
simple_token_authentication-1.15.1 lib/simple_token_authentication/entities_manager.rb
simple_token_authentication-1.15.0 lib/simple_token_authentication/entities_manager.rb
simple_token_authentication-1.14.0 lib/simple_token_authentication/entities_manager.rb
simple_token_authentication-1.13.0 lib/simple_token_authentication/entities_manager.rb
simple_token_authentication-1.12.0 lib/simple_token_authentication/entities_manager.rb
simple_token_authentication-1.11.0 lib/simple_token_authentication/entities_manager.rb
simple_token_authentication-1.10.1 lib/simple_token_authentication/entities_manager.rb
simple_token_authentication-1.10.0 lib/simple_token_authentication/entities_manager.rb
simple_token_authentication-1.9.1 lib/simple_token_authentication/entities_manager.rb
simple_token_authentication-1.9.0 lib/simple_token_authentication/entities_manager.rb