module Authlogic::ActsAsAuthentic::PerishableToken::Methods::InstanceMethods
Public Instance Methods
Source
# File lib/authlogic/acts_as_authentic/perishable_token.rb, line 115 def disable_perishable_token_maintenance? self.class.disable_perishable_token_maintenance == true end
A convenience method based on the disable_perishable_token_maintenance configuration option.
Source
# File lib/authlogic/acts_as_authentic/perishable_token.rb, line 103 def reset_perishable_token self.perishable_token = Random.friendly_token end
Resets the perishable token to a random friendly token.
Source
# File lib/authlogic/acts_as_authentic/perishable_token.rb, line 108 def reset_perishable_token! reset_perishable_token save_without_session_maintenance(validate: false) end
Same as reset_perishable_token
, but then saves the record afterwards.