module Authlogic::ActsAsAuthentic::PersistenceToken::Methods::InstanceMethods
Instance level methods for the persistence token.
Public Instance Methods
reset_persistence_token()
click to toggle source
Resets the persistence_token field to a random hex value.
# File lib/authlogic/acts_as_authentic/persistence_token.rb, line 49 def reset_persistence_token self.persistence_token = Authlogic::Random.hex_token end
reset_persistence_token!()
click to toggle source
Same as #reset_persistence_token, but then saves the record.
# File lib/authlogic/acts_as_authentic/persistence_token.rb, line 54 def reset_persistence_token! reset_persistence_token save_without_session_maintenance(:validate => false) end
Also aliased as: forget!
Private Instance Methods
reset_persistence_token?()
click to toggle source
# File lib/authlogic/acts_as_authentic/persistence_token.rb, line 61 def reset_persistence_token? persistence_token.blank? end