Class: Mail::Message
- Inherits:
-
Object
- Object
- Mail::Message
- Defined in:
- lib/dj_remixes/action_mailer/action_mailer.rb
Defined Under Namespace
Classes: MailmanWorker
Instance Method Summary collapse
Instance Method Details
#deliver_with_worker ⇒ Object
MailmanWorker
15 16 17 18 19 20 21 22 23 |
# File 'lib/dj_remixes/action_mailer/action_mailer.rb', line 15 def deliver_with_worker if ActionMailer::Base.delivery_method == :test deliver_without_worker else puts self Mail::Message::MailmanWorker.enqueue(.merge(:mail => Marshal.dump(self), :klass => self.delivery_handler.name)) return self end end |
#priority(stat) ⇒ Object
27 28 29 30 |
# File 'lib/dj_remixes/action_mailer/action_mailer.rb', line 27 def priority(stat) [:priority] = stat self end |
#run_at(time) ⇒ Object
32 33 34 35 |
# File 'lib/dj_remixes/action_mailer/action_mailer.rb', line 32 def run_at(time) [:run_at] = time self end |