Class: Credible::ResetPasswordMailer
- Inherits:
-
MailerBase
- Object
- ApplicationMailer
- MailerBase
- Credible::ResetPasswordMailer
- Defined in:
- app/mailers/credible/reset_password_mailer.rb
Instance Method Summary collapse
Instance Method Details
#reset_password_email ⇒ Object
2 3 4 5 6 7 8 |
# File 'app/mailers/credible/reset_password_mailer.rb', line 2 def reset_password_email @app_name = params[:app_name] || Rails.application.class.module_parent_name @user = params[:user] # TODO: Provide a means to have URL set by user @reset_password_url = main_app.root_url + 'confirm/' + @user.confirmation_token + '?email=' + @user.email mail(to: @user.email, subject: "Please reset your #{@app_name} password") end |