module ActiveRecord::Transactions
def committed!(should_run_callbacks: true) # :nodoc:
but call it after the commit of a destroyed object.
Ensure that it is not called if the object was never persisted (failed create),
Call the #after_commit callbacks.
def committed!(should_run_callbacks: true) # :nodoc: @_start_transaction_state = nil if should_run_callbacks @_committed_already_called = true _run_commit_callbacks end ensure @_committed_already_called = @_trigger_update_callback = @_trigger_destroy_callback = false end