Method: Logged::LogSubscriber::ActionMailer#process
- Defined in:
- lib/logged/log_subscriber/action_mailer.rb
#process(event) ⇒ Object
An email was generated.
43 44 45 46 47 48 49 |
# File 'lib/logged/log_subscriber/action_mailer.rb', line 43 def process(event) payload = event.payload Thread.current[:logged_action_mailer_process_mailer] = payload[:mailer] Thread.current[:logged_action_mailer_process_action] = payload[:action] Thread.current[:logged_action_mailer_process_duration] = event.duration.to_f end |