class ActionMailer::LogSubscriber
Public Instance Methods
deliver(event)
click to toggle source
# File lib/action_mailer/log_subscriber.rb, line 5 def deliver(event) recipients = Array.wrap(event.payload[:to]).join(', ') info("\nSent mail to #{recipients} (#{format_duration(event.duration)})") debug(event.payload[:mail]) end
logger()
click to toggle source
# File lib/action_mailer/log_subscriber.rb, line 16 def logger ActionMailer::Base.logger end
receive(event)
click to toggle source
# File lib/action_mailer/log_subscriber.rb, line 11 def receive(event) info("\nReceived mail (#{format_duration(event.duration)})") debug(event.payload[:mail]) end