debian-mirror-gitlab/config/initializers/disable_email_interceptor.rb

3 lines
157 B
Ruby
Raw Normal View History

2015-04-26 12:48:37 +05:30
# Interceptor in lib/disable_email_interceptor.rb
ActionMailer::Base.register_interceptor(DisableEmailInterceptor) unless Gitlab.config.gitlab.email_enabled