Module | Authlogic::ActsAsAuthentic::PerishableToken::Methods::ClassMethods |
In: |
lib/authlogic/acts_as_authentic/perishable_token.rb
|
Class level methods for the perishable token
Use this methdo to find a record with a perishable token. This method does 2 things for you:
If you want to use a different timeout value, just pass it as the second parameter:
User.find_using_perishable_token(token, 1.hour)