# File lib/airbrake/rails/active_record.rb, line 20 def run_callbacks(kind, *args, &block) # Let the post process handle the exception if it's not a bugged hook. return super unless [:commit, :rollback].include?(kind) # Handle the exception ourselves. The 'ex' exception won't be # propagated, therefore we must notify it here. begin super rescue Exception => ex Airbrake.notify(ex) raise ex end end