Commit 51b81d7f authored by Grzegorz Bizon's avatar Grzegorz Bizon

Register all action mailer interceptors in a single place

parent e682d941
......@@ -2,3 +2,6 @@ unless Gitlab.config.gitlab.email_enabled
ActionMailer::Base.register_interceptor(::Gitlab::Email::Hook::DisableEmailInterceptor)
ActionMailer::Base.logger = nil
end
ActionMailer::Base.register_interceptor(::Gitlab::Email::Hook::AdditionalHeadersInterceptor)
ActionMailer::Base.register_interceptor(::Gitlab::Email::Hook::EmailTemplateInterceptor)
ActionMailer::Base
.register_interceptor(::Gitlab::Email::Hook::AdditionalHeadersInterceptor)
ActionMailer::Base.register_interceptor(::Gitlab::Email::Hook::EmailTemplateInterceptor)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment