Module AfterCommit::ConnectionAdapters
In: lib/after_commit/connection_adapters.rb

Methods

Public Class methods

Public Instance methods

The commit_db_transaction method gets called when the outermost transaction finishes and everything inside commits. We want to override it so that after this happens, any records that were saved or destroyed within this transaction now get their after_commit callback fired.

In the event the transaction fails and rolls back, nothing inside should recieve the after_commit callback, but do fire the after_rollback callback for each record that failed to be committed.

[Validate]