app/mailers/user_mailer.rb
def email_update(user)
    raise NOTHING_TO_CONFIRM unless user.unconfirmed_email.present?
    @user    = user
    @the_url = reset_url(user)

    mail(to:      @user.unconfirmed_email,
         subject: 'FarmBot Email Update Instructions')
  end
# Much like welcome_email, it is used to check email validity.
# Triggered after the user tries update the `email` attr in Users#update.
Much like welcome_email, it is used to check email validity.
Triggered after the user tries update the `email` attr in Users#update.
Much like welcome_email it is used to check email validity . Triggered after the user tries update the ` email ` attr in Users#update .
def email_update(user)
    raise NOTHING_TO_CONFIRM unless user.unconfirmed_email.present?
    @user    = user
    @the_url = reset_url(user)
    mail(to:      @user.unconfirmed_email,
         subject: 'FarmBot Email Update Instructions')
  end
def email_update ( user ) raise NOTHING_TO_CONFIRM unless user . unconfirmed_email . present? @user = user @the_url = reset_url ( user ) mail ( to : @user . unconfirmed_email , subject : 'FarmBot Email Update Instructions' ) end
Much like welcome_email, it is used to check email validity.
Much like welcome_email it is used to check email validity .
user