Module Authlogic::ActsAsAuthentic::PerishableToken::Methods::ClassMethods
In: lib/authlogic/acts_as_authentic/perishable_token.rb

Class level methods for the perishable token

Methods

Public Instance methods

Use this methdo to find a record with a perishable token. This method does 2 things for you:

  1. It ignores blank tokens
  2. It enforces the perishable_token_valid_for configuration option.

If you want to use a different timeout value, just pass it as the second parameter:

  User.find_using_perishable_token(token, 1.hour)

This method will raise ActiveRecord::NotFound if no record is found.

[Validate]