Sha256: 2be2bb0b2cbcf197c30bc6f0751d933c59aebde61f49bdd936754c62f4bce6c3
Contents?: true
Size: 782 Bytes
Versions: 50
Compression:
Stored size: 782 Bytes
Contents
module Bugsnag::Rails module ActiveRecordRescue KINDS = [:commit, :rollback].freeze FRAMEWORK_ATTRIBUTES = { :framework => "Rails" } def run_callbacks(kind, *args, &block) if KINDS.include?(kind) begin super rescue StandardError => exception # This exception will NOT be escalated, so notify it here. Bugsnag.notify(exception, true) do |report| report.severity = "error" report.severity_reason = { :type => Bugsnag::Report::UNHANDLED_EXCEPTION_MIDDLEWARE, :attributes => FRAMEWORK_ATTRIBUTES } end raise end else # Let the post process handle the exception super end end end end
Version data entries
50 entries across 50 versions & 1 rubygems