Module: Devise::Models::AccessTokenAuthenticatable::ClassMethods
- Defined in:
- lib/devise/models/access_token_authenticatable.rb
Instance Method Summary collapse
- #find_for_access_token_authentication(conditions) ⇒ Object
- #http_authenticatable?(authenticatable_name) ⇒ Boolean
Instance Method Details
#find_for_access_token_authentication(conditions) ⇒ Object
37 38 39 40 41 |
# File 'lib/devise/models/access_token_authenticatable.rb', line 37 def find_for_access_token_authentication(conditions) # TODO Use to_adapter here. token = AccessToken.where(token: conditions[token_authentication_key]).first [token.user, token] if token.try(:fresh?) end |
#http_authenticatable?(authenticatable_name) ⇒ Boolean
45 46 47 |
# File 'lib/devise/models/access_token_authenticatable.rb', line 45 def http_authenticatable?(authenticatable_name) true end |