Module: Authentication::Logic::ActsAsAuthentic::SingleAccessToken::Methods::InstanceMethods
- Defined in:
- lib/auth/logic/acts_as_authentic/single_access_token.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#reset_single_access_token ⇒ Object
Resets the single_access_token to a random friendly token.
-
#reset_single_access_token! ⇒ Object
same as reset_single_access_token, but then saves the record.
Instance Method Details
#reset_single_access_token ⇒ Object
Resets the single_access_token to a random friendly token.
61 62 63 |
# File 'lib/auth/logic/acts_as_authentic/single_access_token.rb', line 61 def reset_single_access_token self.single_access_token = Authentication::Logic::Random.friendly_token end |
#reset_single_access_token! ⇒ Object
same as reset_single_access_token, but then saves the record.
66 67 68 69 |
# File 'lib/auth/logic/acts_as_authentic/single_access_token.rb', line 66 def reset_single_access_token! reset_single_access_token save_without_session_maintenance end |