diff --git a/activerecord/lib/active_record/transactions.rb b/activerecord/lib/active_record/transactions.rb index d0b51ef6a7..a00c80b269 100644 --- a/activerecord/lib/active_record/transactions.rb +++ b/activerecord/lib/active_record/transactions.rb @@ -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