Created
August 2, 2011 20:24
-
-
Save chrishomer/1121119 to your computer and use it in GitHub Desktop.
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
class Delayed::Worker | |
alias_method :original_handle_failed_job, :handle_failed_job | |
def handle_failed_job(job, error) | |
HoptoadNotifier.notify(error) | |
original_handle_failed_job(job, error) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment