Class: LogSanity::LogSubscriber::ActionMailer
- Inherits:
-
Base
- Object
- ActiveSupport::LogSubscriber
- Base
- LogSanity::LogSubscriber::ActionMailer
- Defined in:
- lib/log_sanity/log_subscribers/action_mailer.rb
Instance Method Summary collapse
Instance Method Details
#deliver(event) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# 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) ⇒ Object
15 16 17 18 19 20 21 22 23 |
# 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 |