chore(email): tag sentry mailers

This commit is contained in:
Colin Darie 2023-06-26 10:14:38 +02:00 committed by Martin
parent d45a250075
commit 18096a709b

View file

@ -7,6 +7,8 @@ class ApplicationMailer < ActionMailer::Base
default from: "#{APPLICATION_NAME} <#{CONTACT_EMAIL}>"
layout 'mailer'
before_action -> { Sentry.set_tags(mailer: mailer_name, action: action_name) }
# Attach the procedure logo to the email (if any).
# Returns the attachment url.
def attach_logo(procedure)