Class: NotificationMailers::Reshared

Inherits:
Base
  • Object
show all
Defined in:
app/mailers/notification_mailers/reshared.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

#reshareObject

Returns the value of attribute reshare


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

def reshare
  @reshare
end

Instance Method Details

#set_headers(reshare_id) ⇒ Object


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

def set_headers(reshare_id)
  @reshare = Reshare.find(reshare_id)

  @headers[:subject] = I18n.t('notifier.reshared.reshared', :name => @sender.name)
end