Class: PasscodeMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/passcode_mailer.rb

Instance Method Summary collapse

Instance Method Details

#passcode(administrator, passcode) ⇒ Object



5
6
7
8
9
# File 'app/mailers/passcode_mailer.rb', line 5

def passcode(administrator, passcode)
  @administrator = administrator
  @passcode = passcode
  mail(to:administrator.email, subject:"#{@passcode} is your #{Tolaria.config.company_name} passcode")
end