2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-01-16 11:34:36 +01:00
|
|
|
module MailerDolistConcern
|
|
|
|
extend ActiveSupport::Concern
|
|
|
|
|
|
|
|
included do
|
|
|
|
before_action :add_dolist_header
|
|
|
|
|
|
|
|
# mandatory for dolist
|
|
|
|
# used for tracking in Dolist UI
|
|
|
|
# the delivery_method is yet unknown (:balancer)
|
|
|
|
# so we add the dolist header for everyone
|
|
|
|
def add_dolist_header
|
|
|
|
headers['X-Dolist-Message-Name'] = action_name
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|