Class: NotificationMailers::ContactsBirthday

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

Instance Attribute Summary collapse

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 Attribute Details

#personObject

Returns the value of attribute person


5
6
7
# File 'app/mailers/notification_mailers/contacts_birthday.rb', line 5

def person
  @person
end

Instance Method Details

#set_headers(person_id) ⇒ Object


7
8
9
10
# File 'app/mailers/notification_mailers/contacts_birthday.rb', line 7

def set_headers(person_id)
  @person = Person.find(person_id)
  @headers[:subject] = I18n.t("notifier.contacts_birthday.subject", name: @person.name)
end