Module: Authlogic::ActsAsAuthentic::PersistenceToken::Methods::InstanceMethods
- Defined in:
- lib/novelys_authlogic/acts_as_authentic/persistence_token.rb
Overview
Instance level methods for the persistence token.
Instance Method Summary collapse
-
#reset_persistence_token ⇒ Object
Resets the persistence_token field to a random hex value.
-
#reset_persistence_token! ⇒ Object
(also: #forget!)
Same as reset_persistence_token, but then saves the record.
Instance Method Details
#reset_persistence_token ⇒ Object
Resets the persistence_token field to a random hex value.
49 50 51 |
# File 'lib/novelys_authlogic/acts_as_authentic/persistence_token.rb', line 49 def reset_persistence_token self.persistence_token = Authlogic::Random.hex_token end |
#reset_persistence_token! ⇒ Object Also known as: forget!
Same as reset_persistence_token, but then saves the record.
54 55 56 57 |
# File 'lib/novelys_authlogic/acts_as_authentic/persistence_token.rb', line 54 def reset_persistence_token! reset_persistence_token save_without_session_maintenance(false) end |