Class: ActionMailer::Parameterized::DeliveryJob

Inherits:
DeliveryJob
  • Object
show all
Defined in:
lib/action_mailer/parameterized.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#perform(mailer, mail_method, delivery_method, params, *args) ⇒ Object



126
127
128
# File 'lib/action_mailer/parameterized.rb', line 126

def perform(mailer, mail_method, delivery_method, params, *args)
  mailer.constantize.with(params).public_send(mail_method, *args).send(delivery_method)
end