Class: Gitlab::Email::Hook::DisableEmailInterceptor

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/email/hook/disable_email_interceptor.rb

Class Method Summary collapse

Class Method Details

.delivering_email(message) ⇒ Object


7
8
9
10
11
# File 'lib/gitlab/email/hook/disable_email_interceptor.rb', line 7

def self.delivering_email(message)
  message.perform_deliveries = false

  Gitlab::AppLogger.info "Emails disabled! Interceptor prevented sending mail #{message.subject}"
end