module Authlogic::ActsAsAuthentic::PersistenceToken::Methods::InstanceMethods
Public Instance Methods
Source
# File lib/authlogic/acts_as_authentic/persistence_token.rb, line 50 def reset_persistence_token self.persistence_token = Authlogic::Random.hex_token end
Resets the persistence_token field to a random hex value.
Source
# File lib/authlogic/acts_as_authentic/persistence_token.rb, line 55 def reset_persistence_token! reset_persistence_token save_without_session_maintenance(validate: false) end
Same as reset_persistence_token
, but then saves the record.
Also aliased as: forget!
Private Instance Methods
Source
# File lib/authlogic/acts_as_authentic/persistence_token.rb, line 63 def reset_persistence_token? persistence_token.blank? end