Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Update readme

  • Loading branch information...
commit 62b0d90587e8d65dfff02475c109bc27332943ac 1 parent e71ce6c
Eric Chapweske authored

Showing 1 changed file with 9 additions and 0 deletions. Show diff stats Hide diff stats

  1. +9 0 README.md
9 README.md
Source Rendered
@@ -15,6 +15,7 @@ class EnqueableMailer < ActionMailer::Base
15 15 extend ActionMailer::Enqueable
16 16
17 17 self.delivery_method = :test
  18 + self.queue = MailRenderingJob
18 19
19 20 def welcome(user)
20 21 recipients 'You'
@@ -24,4 +25,12 @@ class EnqueableMailer < ActionMailer::Base
24 25 end
25 26
26 27 end
  28 +
  29 +class MailRenderingJob
  30 +
  31 + def self.enqueue(deferred)
  32 + Resque.enqueue(deferred.encoded)
  33 + end
  34 +
  35 +end
27 36 ````

0 comments on commit 62b0d90

Please sign in to comment.
Something went wrong with that request. Please try again.