Sha256: 703d31dfbe8eb1476d77c5f69bf1cc260729375c66fa99002fec54a88e14cd6b
Contents?: true
Size: 698 Bytes
Versions: 1
Compression:
Stored size: 698 Bytes
Contents
module Rollbar # Report any uncaught errors in a job to Rollbar and reraise module ActiveJob def self.included(base) base.send :rescue_from, Exception do |exception| Rollbar.error(exception, :job => self.class.name, :job_id => job_id, :use_exception_level_filters => true, :arguments => arguments) raise exception end end end end if defined?(ActiveSupport) ActiveSupport.on_load(:action_mailer) do # Automatically add to ActionMailer::DeliveryJob ActionMailer::DeliveryJob.send(:include, Rollbar::ActiveJob) if defined?(ActionMailer::DeliveryJob) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rollbar-2.23.1 | lib/rollbar/plugins/active_job.rb |