Make sure transaction state resets after commit

[fixes #12566]

Conflicts:
	activerecord/test/cases/transaction_callbacks_test.rb
This commit is contained in:
Arthur Neves
2014-02-03 15:29:26 -05:00
committed by Charlie Somerville
parent e27d15746c
commit 7cbeae9a5c

View File

@@ -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