aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/base.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-03-16 11:26:19 -0700
committerwycats <wycats@gmail.com>2010-03-16 11:48:34 -0700
commit8c3e46c093023f9430c9772e81d58c9ee24de229 (patch)
treea5ebc7ccef49aaba8ca73f97eea7053225143144 /activerecord/lib/active_record/base.rb
parentc61ed70b00c93bdf42c7538a334f07e58c60bc4e (diff)
downloadrails-8c3e46c093023f9430c9772e81d58c9ee24de229.tar.gz
rails-8c3e46c093023f9430c9772e81d58c9ee24de229.tar.bz2
rails-8c3e46c093023f9430c9772e81d58c9ee24de229.zip
clean up more warnings, remove unnecessary methods, fix eval line numbers. [#4193 state:resolved]
Signed-off-by: wycats <wycats@gmail.com>
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rwxr-xr-xactiverecord/lib/active_record/base.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index 1488d9f967..3d4172f368 100755
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -1045,6 +1045,8 @@ module ActiveRecord #:nodoc:
object.instance_variable_set(:@readonly, false)
object.instance_variable_set(:@destroyed, false)
object.instance_variable_set(:@marked_for_destruction, false)
+ object.instance_variable_set(:@previously_changed, {})
+ object.instance_variable_set(:@changed_attributes, {})
object.send(:_run_find_callbacks)
object.send(:_run_initialize_callbacks)
@@ -1513,6 +1515,8 @@ module ActiveRecord #:nodoc:
@readonly = false
@destroyed = false
@marked_for_destruction = false
+ @previously_changed = {}
+ @changed_attributes = {}
ensure_proper_type