Sha256: 3d0c50c8756a4f2fd1cc1bd7b2195445f756f27473eeb7700079bf351c5e2058
Contents?: true
Size: 737 Bytes
Versions: 14
Compression:
Stored size: 737 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.respond_to?(:on_load) 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
14 entries across 14 versions & 1 rubygems