# File lib/authlogic/acts_as_authentic/perishable_token.rb, line 63 def find_using_perishable_token(token, age = self.perishable_token_valid_for) return if token.blank? age = age.to_i conditions_sql = "perishable_token = ?" conditions_subs = [token] if column_names.include?("updated_at") && age > 0 conditions_sql += " and updated_at > ?" conditions_subs << age.seconds.ago end where(conditions_sql, *conditions_subs).first end