mirror of
https://github.com/github/rails.git
synced 2026-01-08 22:27:59 -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:
|
def committed! #:nodoc:
|
||||||
run_callbacks :commit
|
run_callbacks :commit
|
||||||
ensure
|
ensure
|
||||||
clear_transaction_record_state
|
@_start_transaction_state.clear
|
||||||
end
|
end
|
||||||
|
|
||||||
# Call the after rollback callbacks. The restore_state argument indicates if the record
|
# Call the after rollback callbacks. The restore_state argument indicates if the record
|
||||||
|
|||||||
Reference in New Issue
Block a user