Module Airbrake::Rails::ActiveRecord
In: lib/airbrake/rails/active_record.rb

Rails <4.2 has a bug with regard to swallowing exceptions in the after_commit and the after_rollback hooks: it doesn‘t bubble up exceptions from there.

This module makes it possible to report exceptions occurring there.

@see github.com/rails/rails/pull/14488 Detailed description of the

  bug and the fix

@see goo.gl/348lor Rails 4.2+ implementation (fixed) @see goo.gl/ddFNg7 Rails <4.2 implementation (bugged)

Methods

Public Instance methods

Patches default run_callbacks with our version, which is capable of notifying about exceptions.

rubocop:disable Lint/RescueException

[Validate]