Class: RailsBand::ActionMailer::LogSubscriber

Inherits:
ActiveSupport::LogSubscriber
  • Object
show all
Defined in:
lib/rails_band/action_mailer/log_subscriber.rb

Overview

The custom LogSubscriber for ActionMailer.

Instance Method Summary collapse

Instance Method Details

#deliver(event) ⇒ Object



12
13
14
# File 'lib/rails_band/action_mailer/log_subscriber.rb', line 12

def deliver(event)
  consumer_of(__method__)&.call(Event::Deliver.new(event))
end

#process(event) ⇒ Object



16
17
18
# File 'lib/rails_band/action_mailer/log_subscriber.rb', line 16

def process(event)
  consumer_of(__method__)&.call(Event::Process.new(event))
end