app/models/user.rb
# Sets the password reset attributes.
Sets the password reset attributes.
Sets the password reset attributes .
def create_reset_digest
    self.reset_token = User.new_token
    self.reset_digest = User.digest(reset_token)
    self.reset_sent_at = Time.zone.now
    save!(touch: false)
  end
def create_reset_digest self . reset_token = User . new_token self . reset_digest = User . digest ( reset_token ) self . reset_sent_at = Time . zone . now save! ( touch : false ) end
Sets the password reset attributes.
Sets the password reset attributes .