Method: Authlogic::ActsAsAuthentic::PerishableToken::Methods::ClassMethods#find_using_perishable_token!

Defined in:
lib/authlogic/acts_as_authentic/perishable_token.rb

#find_using_perishable_token!(token, age = perishable_token_valid_for) ⇒ Object

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



95
96
97
# File 'lib/authlogic/acts_as_authentic/perishable_token.rb', line 95

def find_using_perishable_token!(token, age = perishable_token_valid_for)
  find_using_perishable_token(token, age) || raise(ActiveRecord::RecordNotFound)
end