Browse files

Update README.md

  • Loading branch information...
1 parent a1590fa commit f2bc032f7aa4b8635a75d7c2fbed55e2ae1d7821 @eac committed Feb 13, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 README.md
View
5 README.md
@@ -31,6 +31,11 @@ class MailRenderingJob
def self.enqueue(deferred)
Resque.enqueue(deferred.encoded)
end
+
+ def self.work(params)
+ deferred = ActionMailer::Enqueable::Deferred.from_hash(params)
+ deferred.mailer.deliver!
+ end
end
````

0 comments on commit f2bc032

Please sign in to comment.