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


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

def like
  @like
end

Instance Method Details

#set_headers(like_id) ⇒ Object


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

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

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