Class: PinfirmableMailer

Inherits:
ApplicationMailer
  • Object
show all
Defined in:
app/mailers/pinfirmable_mailer.rb

Instance Method Summary collapse

Instance Method Details

#pin_email(user) ⇒ Object



2
3
4
5
6
7
8
9
10
11
12
# File 'app/mailers/pinfirmable_mailer.rb', line 2

def pin_email(user)
  @code_part1 = user.pinfirmable_pin[0..2]
  @code_part2 = user.pinfirmable_pin[3..6]
  mail(
    to: user.email,
    subject: default_i18n_subject(
      code_part1: @code_part1,
      code_part2: @code_part2
    )
  )
end