Class: Recoil::Interceptor

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

Class Method Summary collapse

Class Method Details

.delivering_email(message) ⇒ Object



3
4
5
6
7
# File 'lib/recoil/interceptor.rb', line 3

def self.delivering_email(message)
  if message.to.any? { |email| Email.new(email).blacklisted? }
    message.perform_deliveries = false
  end
end