Class: Credible::ConfirmationMailer
- Inherits:
-
MailerBase
- Object
- ApplicationMailer
- MailerBase
- Credible::ConfirmationMailer
- Defined in:
- app/mailers/credible/confirmation_mailer.rb
Instance Method Summary collapse
Instance Method Details
#confirmation_email ⇒ Object
2 3 4 5 6 7 8 |
# File 'app/mailers/credible/confirmation_mailer.rb', line 2 def confirmation_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 @confirmation_url = main_app.root_url + 'confirm/' + @user.confirmation_token + '?email=' + @user.email mail(to: @user.email, subject: "Welcome to #{@app_name} | Please confirm your account") end |