Class: SnfCore::AuthMailer
- Inherits:
-
ApplicationMailer
- Object
- ActionMailer::Base
- ApplicationMailer
- SnfCore::AuthMailer
- Defined in:
- app/mailers/snf_core/auth_mailer.rb
Instance Method Summary collapse
Instance Method Details
#reset_password ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'app/mailers/snf_core/auth_mailer.rb', line 3 def reset_password @user = params[:user] @reset_url = "#{params[:reset_url] || 'http://localhost:3000/reset-password'}/#{@user.reset_password_token}" mail( to: @user.email, subject: "Reset Your Password" ) end |