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


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

def reshare
  @reshare
end

Instance Method Details

#set_headers(reshare_id) ⇒ Object


9
10
11
12
13
14
# File 'app/mailers/notification_mailers/reshared.rb', line 9

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

  @headers[:subject] = I18n.t('notifier.reshared.reshared', :name => @sender.name)
  @headers[:in_reply_to] = @headers[:references] = "<#{@reshare.root_guid}@#{AppConfig.pod_uri.host}>"
end