Created
April 17, 2012 22:02
-
-
Save jackdempsey/2409371 to your computer and use it in GitHub Desktop.
easily set sidekiq to directly send emails rather than delaying them
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Sidekiq | |
| module Extensions | |
| class Proxy | |
| def method_missing(name, *args) | |
| @target.send(name, *args).deliver | |
| end | |
| end | |
| end | |
| end |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not even sure at this point if I want to use this...just got to where I felt like it would be good to know how to directly send emails rather than delaying. Got curious and realized this would likely do it, hackish as it is.