class LogSanity::LogSubscriber::ActionMailer
Public Instance Methods
deliver(event)
click to toggle source
# File lib/log_sanity/log_subscribers/action_mailer.rb, line 5 def deliver(event) info do { 'at' => Time.now, 'event' => 'mail_send', 'from' => Array(event.payload[:from]), 'to' => Array(event.payload[:to]) } end end
receive(event)
click to toggle source
# File lib/log_sanity/log_subscribers/action_mailer.rb, line 15 def receive(event) info do { 'at' => Time.now, 'event' => 'mail_receive', 'from' => Array(event.payload[:from]), 'to' => Array(event.payload[:to]) } end end