Module: Devise::TokenAuthenticatable
- Defined in:
- lib/devise/token_authenticatable.rb,
lib/devise/token_authenticatable/version.rb
Constant Summary collapse
- VERSION =
'1.1.0'.freeze
- @@token_authentication_key =
:auth_token
- @@token_expires_in =
nil
- @@should_reset_authentication_token =
false
- @@should_ensure_authentication_token =
false
Class Method Summary collapse
-
.setup {|_self| ... } ⇒ Object
Enable the configuration of the TokenAuthenticatable strategy with a block:.
Class Method Details
.setup {|_self| ... } ⇒ Object
Enable the configuration of the TokenAuthenticatable strategy with a block:
Devise::TokenAuthenticatable.setup do |config|
config.token_authentication_key = :other_key
end
29 30 31 |
# File 'lib/devise/token_authenticatable.rb', line 29 def self.setup yield self end |