aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/core.rb
diff options
context:
space:
mode:
authorArthur Neves <arthurnn@gmail.com>2014-05-07 16:02:22 -0400
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-05-07 17:39:24 -0300
commit37c238927fbed059de3f26a90d8923fb377568a5 (patch)
tree442bcf6ce4f31d2527ae3851e1345b7a6e28fc07 /activerecord/lib/active_record/core.rb
parent8d8d4f1560264cd1c74364d67fa0501f6dd2c4fa (diff)
downloadrails-37c238927fbed059de3f26a90d8923fb377568a5.tar.gz
rails-37c238927fbed059de3f26a90d8923fb377568a5.tar.bz2
rails-37c238927fbed059de3f26a90d8923fb377568a5.zip
Keep track of dirty attrs after after rollback.
[related #13166]
Diffstat (limited to 'activerecord/lib/active_record/core.rb')
-rw-r--r--activerecord/lib/active_record/core.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/core.rb b/activerecord/lib/active_record/core.rb
index 22870fb6c5..4571cc0786 100644
--- a/activerecord/lib/active_record/core.rb
+++ b/activerecord/lib/active_record/core.rb
@@ -505,6 +505,7 @@ module ActiveRecord
@destroyed_by_association = nil
@new_record = true
@txn = nil
+ @_start_transaction_state = {}
@transaction_state = nil
@reflects_state = [false]
end