Class: Que::Mailer::MailJob

Inherits:
Job
  • Object
show all
Defined in:
lib/que_mailer.rb

Instance Method Summary collapse

Instance Method Details

#run(mailer_class, method_name, *args) ⇒ Object



51
52
53
54
# File 'lib/que_mailer.rb', line 51

def run(mailer_class, method_name, *args)
  mailer = Kernel.const_get(mailer_class)
  mailer.send(method_name, *args).deliver!
end