aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/attribute_methods/dirty.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/attribute_methods/dirty.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/attribute_methods/dirty.rb')
-rw-r--r--activerecord/lib/active_record/attribute_methods/dirty.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/attribute_methods/dirty.rb b/activerecord/lib/active_record/attribute_methods/dirty.rb
index 4a3ab9ea82..64e761e7a4 100644
--- a/activerecord/lib/active_record/attribute_methods/dirty.rb
+++ b/activerecord/lib/active_record/attribute_methods/dirty.rb
@@ -34,7 +34,7 @@ module ActiveRecord
# <tt>reload</tt> the record and clears changed attributes.
def reload_with_dirty(*args) #:nodoc:
reload_without_dirty(*args).tap do
- previously_changed_attributes.clear
+ @previously_changed.clear
changed_attributes.clear
end
end