Method: SimpleTokenAuthentication::Entity#identifier

Defined in:
lib/simple_token_authentication/entity.rb

#identifierObject



49
50
51
52
53
54
55
# File 'lib/simple_token_authentication/entity.rb', line 49

def identifier
  if custom_identifier = SimpleTokenAuthentication.identifiers["#{name_underscore}".to_sym]
    custom_identifier.to_sym
  else
    :email
  end
end