Skip to content

Instantly share code, notes, and snippets.

@miloops
Created March 12, 2012 13:43
Show Gist options
  • Save miloops/2021991 to your computer and use it in GitHub Desktop.
Save miloops/2021991 to your computer and use it in GitHub Desktop.
require 'airbrake'
module Delayed
class Worker
def handle_failed_job_with_aibrake(job, error)
Airbrake.notify_or_ignore(error, :cgi_data => job.attributes)
handle_failed_job_without_aibrake(job, error)
end
alias_method_chain :handle_failed_job, :aibrake
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment