Class: DisableEmailInterceptor

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

Overview

Class Method Summary collapse

Class Method Details

.delivering_email(message) ⇒ Object


4
5
6
7
# File 'lib/disable_email_interceptor.rb', line 4

def self.delivering_email(message)
  message.perform_deliveries = false
  Rails.logger.info "Emails disabled! Interceptor prevented sending mail #{message.subject}"
end