Sha256: e91d4b1d2bf5b0b837cd4cca3a3be12b573f337dafb838a8c11a84e1c023c9c8
Contents?: true
Size: 555 Bytes
Versions: 184
Compression:
Stored size: 555 Bytes
Contents
require 'active_support/core_ext/array/wrap' module ActionMailer class LogSubscriber < ActiveSupport::LogSubscriber def deliver(event) recipients = Array.wrap(event.payload[:to]).join(', ') info("\nSent mail to #{recipients} (%1.fms)" % event.duration) debug(event.payload[:mail]) end def receive(event) info("\nReceived mail (%.1fms)" % event.duration) debug(event.payload[:mail]) end def logger ActionMailer::Base.logger end end end ActionMailer::LogSubscriber.attach_to :action_mailer
Version data entries
184 entries across 158 versions & 11 rubygems