Class: Aikotoba::AccountMailer
- Inherits:
-
ApplicationMailer
- Object
- ApplicationMailer
- Aikotoba::AccountMailer
- Defined in:
- app/mailers/aikotoba/account_mailer.rb
Instance Method Summary collapse
Instance Method Details
#confirm ⇒ Object
3 4 5 6 7 8 |
# File 'app/mailers/aikotoba/account_mailer.rb', line 3 def confirm @account = params[:account] @token = @account.confirmation_token @confirm_url = aikotoba.confirm_account_url(token: @token.token) mail(to: @account.email, subject: I18n.t(".aikotoba.mailers.confirm.subject")) end |
#recover ⇒ Object
17 18 19 20 21 22 |
# File 'app/mailers/aikotoba/account_mailer.rb', line 17 def recover @account = params[:account] @token = @account.recovery_token @recover_url = aikotoba.edit_account_password_url(token: @token.token) mail(to: @account.email, subject: I18n.t(".aikotoba.mailers.recover.subject")) end |
#unlock ⇒ Object
10 11 12 13 14 15 |
# File 'app/mailers/aikotoba/account_mailer.rb', line 10 def unlock @account = params[:account] @token = @account.unlock_token @unlock_url = aikotoba.unlock_account_url(token: @token.token) mail(to: @account.email, subject: I18n.t(".aikotoba.mailers.unlock.subject")) end |