aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2013-12-27 15:02:57 -0500
committerGuillermo Iguaran <guilleiguaran@gmail.com>2013-12-27 15:02:57 -0500
commit04108f214c9bc43c2cd139f46718395c062bed46 (patch)
tree84c0ee90af43866847fed74509f775d91e05c34d /activerecord/lib
parentef28028c45c6b19f161c74ada460c4590f5ef49d (diff)
parent4fd3204a048b0c2dea0620e96f989a305f052629 (diff)
downloadrails-04108f214c9bc43c2cd139f46718395c062bed46.tar.gz
rails-04108f214c9bc43c2cd139f46718395c062bed46.tar.bz2
rails-04108f214c9bc43c2cd139f46718395c062bed46.zip
Merge branch 'master' of github.com:rails/rails
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/persistence.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb
index 0cd5c09399..309bb980e3 100644
--- a/activerecord/lib/active_record/persistence.rb
+++ b/activerecord/lib/active_record/persistence.rb
@@ -181,6 +181,7 @@ module ActiveRecord
became = klass.new
became.instance_variable_set("@attributes", @attributes)
became.instance_variable_set("@attributes_cache", @attributes_cache)
+ became.instance_variable_set("@changed_attributes", @changed_attributes)
became.instance_variable_set("@new_record", new_record?)
became.instance_variable_set("@destroyed", destroyed?)
became.instance_variable_set("@errors", errors)