diaspora/app/mailers/notification_mailers/started_sharing.rb
cmrd Senya ef5751b808
Refactor mail workers to use common base
Introduce Workers::Mail::NotifierBase to be a base for all appropriate
mail workers to reduce code duplication
2016-11-28 15:35:46 +02:00

7 lines
257 B
Ruby

module NotificationMailers
class StartedSharing < NotificationMailers::Base
def set_headers(*_args) # rubocop:disable Style/AccessorMethodName
@headers[:subject] = I18n.t("notifier.started_sharing.subject", name: @sender.name)
end
end
end