Module: Devise::Models::TokenAuthenticatable::ClassMethods
- Defined in:
- lib/devise/models/token_authenticatable.rb
Instance Method Summary collapse
-
#authentication_token ⇒ Object
Generate a token checking if one does not already exist in the database.
- #find_for_token_authentication(conditions) ⇒ Object
Instance Method Details
#authentication_token ⇒ Object
Generate a token checking if one does not already exist in the database.
61 62 63 |
# File 'lib/devise/models/token_authenticatable.rb', line 61 def authentication_token generate_token(:authentication_token) end |
#find_for_token_authentication(conditions) ⇒ Object
56 57 58 |
# File 'lib/devise/models/token_authenticatable.rb', line 56 def find_for_token_authentication(conditions) find_for_authentication(:authentication_token => conditions[token_authentication_key]) end |