What\'s the proper way to get error reports, when using a tool like AirBrake or ExceptionNotifier from mailing delayed jobs?
I tried to creating my own delayed job class
First, a module for inclusion in mailer and, possibly, other delayed jobs:
module Delayed
module Airbrake
# Send error via Airbrake
def error(job, e)
::Airbrake.notify(e, :component => job.name, :action => 'perform', :parameters => {:job => job.inspect})
end
end
end
then include it:
Delayed::PerformableMailer.send(:include, Delayed::Airbrake)