debian-mirror-gitlab/config/initializers/disable_email_interceptor.rb
2018-11-08 19:23:39 +05:30

5 lines
197 B
Ruby

# Interceptor in lib/disable_email_interceptor.rb
unless Gitlab.config.gitlab.email_enabled
ActionMailer::Base.register_interceptor(DisableEmailInterceptor)
ActionMailer::Base.logger = nil
end