This commit is contained in:
r888888888
2014-04-14 14:32:01 -07:00
parent 7a61048d69
commit fad0ab7c93
105 changed files with 610 additions and 485 deletions

View File

@@ -3,6 +3,7 @@ class UserPasswordResetNonce < ActiveRecord::Base
validate :validate_existence_of_email
before_validation :initialize_key, :on => :create
after_create :deliver_notice
attr_accessible :key, :nonce, :email
def self.prune!
destroy_all(["created_at < ?", 1.week.ago])