Class: MandrillMailer::MandrillMessageJob
- Inherits:
-
ActiveJob::Base
- Object
- ActiveJob::Base
- MandrillMailer::MandrillMessageJob
- Defined in:
- lib/mandrill_mailer/mandrill_message_later.rb
Instance Method Summary collapse
Instance Method Details
#perform(message, async, ip_pool, send_at, mailer = 'MandrillMailer::MessageMailer') ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/mandrill_mailer/mandrill_message_later.rb', line 6 def perform(, async, ip_pool, send_at, mailer='MandrillMailer::MessageMailer') mailer = mailer.constantize.new mailer. = mailer.async = async mailer.ip_pool = ip_pool mailer.send_at = send_at mailer.deliver_now end |