Class: Aikotoba::AccountMailer

Inherits:
ApplicationMailer show all
Defined in:
app/mailers/aikotoba/account_mailer.rb

Instance Method Summary collapse

Instance Method Details

#confirmObject



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.(token: @token.token)
  mail(to: @account.email, subject: I18n.t(".aikotoba.mailers.confirm.subject"))
end

#recoverObject



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.(token: @token.token)
  mail(to: @account.email, subject: I18n.t(".aikotoba.mailers.recover.subject"))
end

#unlockObject



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.(token: @token.token)
  mail(to: @account.email, subject: I18n.t(".aikotoba.mailers.unlock.subject"))
end