app/models/user.rb
# Sends an password reset email.
Sends an password reset email.
Sends an password reset email .
def send_password_reset_email
    create_password_reset_digest
    update_attribute(:sent_reset_at, Time.zone.now)
    UserMailer.password_reset(self).deliver_later
  end
def send_password_reset_email create_password_reset_digest update_attribute ( :sent_reset_at , Time . zone . now ) UserMailer . password_reset ( self ) . deliver_later end
Sends an password reset email.
Sends an password reset email .