gitlab-org--gitlab-foss/config/initializers/disable_email_interceptor.rb

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