Module | AfterCommit::ConnectionAdapters |
In: |
lib/after_commit/connection_adapters.rb
|
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.