Skip to content

Instantly share code, notes, and snippets.

@jackdempsey
Created April 17, 2012 22:02
Show Gist options
  • Select an option

  • Save jackdempsey/2409371 to your computer and use it in GitHub Desktop.

Select an option

Save jackdempsey/2409371 to your computer and use it in GitHub Desktop.
easily set sidekiq to directly send emails rather than delaying them
module Sidekiq
module Extensions
class Proxy
def method_missing(name, *args)
@target.send(name, *args).deliver
end
end
end
end
@jackdempsey

Copy link
Copy Markdown
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment