Class: UserMailer
- Inherits:
-
Object
- Object
- UserMailer
- Defined in:
- app/controllers/user_mailer.rb
Instance Method Summary collapse
Instance Method Details
#email_verification(token) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'app/controllers/user_mailer.rb', line 4 def email_verification token @to = token.email @from = rad.users.email @subject = t :email_verification_title, host: rad.users.host # sent_on Time.now @body = t( :email_verification_text, host: rad.users.host, url: finish_email_registration_form_identities_path(host: rad.users.host, token: token.token) ) end |
#forgot_password(token) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'app/controllers/user_mailer.rb', line 17 def forgot_password token @to = token.user.email @from = rad.users.email @subject = t :forgot_password_title, name: token.user.name, host: rad.users.host # sent_on Time.now @body = t( :forgot_password_text, name: token.user.name, host: rad.users.host, url: reset_password_form_identities_path(host: rad.users.host, token: token.token) ) end |