Class: Mail::Message::MailmanWorker

Inherits:
DJ::Worker show all
Defined in:
lib/dj_remixes/action_mailer/action_mailer.rb

Constant Summary

Constants inherited from DJ::Worker

DJ::Worker::PRIORITY_LEVELS

Instance Attribute Summary

Attributes inherited from DJ::Worker

#priority, #run_at, #worker_class_name

Instance Method Summary collapse

Methods inherited from DJ::Worker

#after, #before, #clone, #dj_object, #dj_object=, enqueue, #enqueue!, #error, #error_with_airbrake, #error_with_hoptoad, is_unique, priority, re_enqueue, run_at, #success, #unique?

Instance Method Details

#performObject



6
7
8
9
10
11
# File 'lib/dj_remixes/action_mailer/action_mailer.rb', line 6

def perform   
  # Force loading of the class first to avoid the dreaded 'undefined class/module' error
  eval(self.klass)
  message = Marshal.load(self.mail)
  message.deliver_without_worker
end