Permalink
Browse files

Update readme

  • Loading branch information...
1 parent e71ce6c commit 62b0d90587e8d65dfff02475c109bc27332943ac Eric Chapweske committed Feb 13, 2013
Showing with 9 additions and 0 deletions.
  1. +9 −0 README.md
View
@@ -15,6 +15,7 @@ class EnqueableMailer < ActionMailer::Base
extend ActionMailer::Enqueable
self.delivery_method = :test
+ self.queue = MailRenderingJob
def welcome(user)
recipients 'You'
@@ -23,5 +24,13 @@ class EnqueableMailer < ActionMailer::Base
body "Email: Hello, #{user}"
end
+end
+
+class MailRenderingJob
+
+ def self.enqueue(deferred)
+ Resque.enqueue(deferred.encoded)
+ end
+
end
````

0 comments on commit 62b0d90

Please sign in to comment.