Class: RegistrationMailer

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

Instance Method Summary collapse

Instance Method Details

#approved(approved_user) ⇒ Object


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

def approved(approved_user)
  @resource = approved_user
  mail(to: @resource.email,
       subject: t('devise.mailer.registrations.approved.subject'))
end

#signed_up(signed_up_user) ⇒ Object


11
12
13
14
15
# File 'app/mailers/registration_mailer.rb', line 11

def signed_up(signed_up_user)
  @resource = signed_up_user
  mail(to: User.administrators.pluck(:email),
       subject: t('devise.mailer.registrations.signed_up.subject'))
end