module Authlogic::ActsAsAuthentic::PerishableToken::Methods::InstanceMethods

Instance level methods for the perishable token.

Public Instance Methods

disable_perishable_token_maintenance?() click to toggle source

A convenience method based on the disable_perishable_token_maintenance configuration option.

# File lib/authlogic/acts_as_authentic/perishable_token.rb, line 98
def disable_perishable_token_maintenance?
  self.class.disable_perishable_token_maintenance == true
end
reset_perishable_token() click to toggle source

Resets the perishable token to a random friendly token.

# File lib/authlogic/acts_as_authentic/perishable_token.rb, line 87
def reset_perishable_token
  self.perishable_token = Random.friendly_token
end
reset_perishable_token!() click to toggle source

Same as #reset_perishable_token, but then saves the record afterwards.

# File lib/authlogic/acts_as_authentic/perishable_token.rb, line 92
def reset_perishable_token!
  reset_perishable_token
  save_without_session_maintenance(:validate => false)
end