Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update readme

  • Loading branch information...
commit 62b0d90587e8d65dfff02475c109bc27332943ac 1 parent e71ce6c
Eric Chapweske authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 README.md
View
9 README.md
@@ -15,6 +15,7 @@ class EnqueableMailer < ActionMailer::Base
extend ActionMailer::Enqueable
self.delivery_method = :test
+ self.queue = MailRenderingJob
def welcome(user)
recipients 'You'
@@ -24,4 +25,12 @@ class EnqueableMailer < ActionMailer::Base
end
end
+
+class MailRenderingJob
+
+ def self.enqueue(deferred)
+ Resque.enqueue(deferred.encoded)
+ end
+
+end
````
Please sign in to comment.
Something went wrong with that request. Please try again.