Skip to content

Instantly share code, notes, and snippets.

@collinschaafsma
Created October 11, 2010 17:08
Show Gist options
  • Save collinschaafsma/620868 to your computer and use it in GitHub Desktop.
Save collinschaafsma/620868 to your computer and use it in GitHub Desktop.
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