Class: NotificationMailers::ConfirmEmail

Inherits:
Base
  • Object
show all
Defined in:
app/mailers/notification_mailers/confirm_email.rb

Instance Attribute Summary

Attributes inherited from Base

#recipient, #sender

Instance Method Summary collapse

Methods inherited from Base

#headers, #initialize, #name_and_address

Constructor Details

This class inherits a constructor from NotificationMailers::Base

Instance Method Details

#set_headersObject


3
4
5
6
# File 'app/mailers/notification_mailers/confirm_email.rb', line 3

def set_headers
  @headers[:to] = name_and_address(@recipient.first_name, @recipient.unconfirmed_email)
  @headers[:subject] = I18n.t('notifier.confirm_email.subject', :unconfirmed_email => @recipient.unconfirmed_email)
end