mirror of
https://github.com/github/rails.git
synced 2026-01-07 22:04:07 -05:00
Make sure transaction state resets after commit
[fixes #12566] Conflicts: activerecord/test/cases/transaction_callbacks_test.rb
This commit is contained in:
committed by
Charlie Somerville
parent
e27d15746c
commit
7cbeae9a5c
@@ -280,7 +280,7 @@ module ActiveRecord
|
||||
def committed! #:nodoc:
|
||||
run_callbacks :commit
|
||||
ensure
|
||||
clear_transaction_record_state
|
||||
@_start_transaction_state.clear
|
||||
end
|
||||
|
||||
# Call the after rollback callbacks. The restore_state argument indicates if the record
|
||||
|
||||
Reference in New Issue
Block a user