gitlab-org--gitlab-foss/config/initializers/disable_email_interceptor.rb
2015-05-06 17:39:18 +03:00

2 lines
157 B
Ruby

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