Class: NotificationMailers::Liked

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

#likeObject

Returns the value of attribute like


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

def like
  @like
end

Instance Method Details

#set_headers(like_id) ⇒ Object


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

def set_headers(like_id)
  @like = Like.find(like_id)

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