diaspora/app/mailers/notification_mailers/reshared.rb
2012-09-23 19:33:19 +02:00

13 lines
332 B
Ruby

module NotificationMailers
class Reshared < NotificationMailers::Base
attr_accessor :reshare
delegate :root, to: :reshare, prefix: true
def set_headers(reshare_id)
@reshare = Reshare.find(reshare_id)
@headers[:subject] = I18n.t('notifier.reshared.reshared', :name => @sender.name)
end
end
end