Sha256: 720e496090b561ea3b5be45ecbabe1f6361daf6d9a3c33e6dfc771859183a4a3
Contents?: true
Size: 365 Bytes
Versions: 62
Compression:
Stored size: 365 Bytes
Contents
module Workarea class MailInterceptor def self.delivering_email(message) message.perform_deliveries = false unless deliver?(message) end def self.deliver?(message) if Workarea.config.send_email.respond_to?(:call) Workarea.config.send_email.call(message) else !!Workarea.config.send_email end end end end
Version data entries
62 entries across 62 versions & 1 rubygems