module Authlogic::ActsAsAuthentic::PerishableToken::Methods
All methods relating to the perishable token.
Public Class Methods
included(klass)
click to toggle source
# File lib/authlogic/acts_as_authentic/perishable_token.rb, line 41 def self.included(klass) return if !klass.column_names.include?("perishable_token") klass.class_eval do extend ClassMethods include InstanceMethods validates_uniqueness_of :perishable_token, :if => :perishable_token_changed? before_save :reset_perishable_token, :unless => :disable_perishable_token_maintenance? end end