module ActiveRecord::Transactions
def rolledback!(force_restore_state: false, should_run_callbacks: true) # :nodoc:
state should be rolled back to the beginning or just to the last savepoint.
Call the #after_rollback callbacks. The +force_restore_state+ argument indicates if the record
def rolledback!(force_restore_state: false, should_run_callbacks: true) # :nodoc: if should_run_callbacks _run_rollback_callbacks end ensure restore_transaction_record_state(force_restore_state) clear_transaction_record_state @_trigger_update_callback = @_trigger_destroy_callback = false if force_restore_state end