Sha256: 727417e5cd6db6445e8cd75ae6346465774855a42bfe8b848f246a47e1d4e337
Contents?: true
Size: 361 Bytes
Versions: 1
Compression:
Stored size: 361 Bytes
Contents
module ResqueMods module AirbrakeNotifyJob def around_perform_notify_airbrake(*args) begin yield *args rescue => e if defined? Airbrake Airbrake.notify(e) else ResqueMods.logger.error "Airbrake not present. Hit error: #{e.getmessage}" raise end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
resque-mods-1.0.0 | lib/resque-mods/airbrake_notify_job.rb |