Created
October 11, 2010 17:08
-
-
Save collinschaafsma/620868 to your computer and use it in GitHub Desktop.
This file contains 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 Delayed | |
class Worker | |
alias_method :original_handle_failed_job, :handle_failed_job | |
protected | |
def handle_failed_job(job, error) | |
say "Error Intercepted by Hoptoad..." | |
HoptoadNotifier.notify(error) | |
original_handle_failed_job(job,error) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment