diff options
author | Arthur Neves <arthurnn@gmail.com> | 2014-02-03 15:29:26 -0500 |
---|---|---|
committer | Arthur Neves <arthurnn@gmail.com> | 2014-02-03 15:49:48 -0500 |
commit | 9b66d6d47f87d31fb360f48542520d9216e77dc9 (patch) | |
tree | 2d52fa53b21a755cf58a82688f3de9c128c11156 /activerecord/lib/active_record | |
parent | 28abd967fcc8544650c73910a8a0cbaa6dafc1f5 (diff) | |
download | rails-9b66d6d47f87d31fb360f48542520d9216e77dc9.tar.gz rails-9b66d6d47f87d31fb360f48542520d9216e77dc9.tar.bz2 rails-9b66d6d47f87d31fb360f48542520d9216e77dc9.zip |
Make sure transaction state resets after commit
[fixes #12566]
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/transactions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/transactions.rb b/activerecord/lib/active_record/transactions.rb index c33ffeece0..ec3e8f281b 100644 --- a/activerecord/lib/active_record/transactions.rb +++ b/activerecord/lib/active_record/transactions.rb @@ -295,7 +295,7 @@ module ActiveRecord def committed! #:nodoc: run_callbacks :commit if destroyed? || persisted? ensure - clear_transaction_record_state + @_start_transaction_state.clear end # Call the +after_rollback+ callbacks. The +force_restore_state+ argument indicates if the record |