aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/base.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-11-26 00:35:23 +0100
committerXavier Noria <fxn@hashref.com>2010-11-26 00:35:23 +0100
commit9332cc582ebaa9b6755fa7bdfe0bc04dd51c098d (patch)
tree387535d280a1439069ca3cebf35376325fac7d9c /activerecord/lib/active_record/base.rb
parent74049b57fba3d26a5c9ac220619362ff36893b13 (diff)
downloadrails-9332cc582ebaa9b6755fa7bdfe0bc04dd51c098d.tar.gz
rails-9332cc582ebaa9b6755fa7bdfe0bc04dd51c098d.tar.bz2
rails-9332cc582ebaa9b6755fa7bdfe0bc04dd51c098d.zip
removes a couple of redundant selfs
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rw-r--r--activerecord/lib/active_record/base.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index b7aac7a7c9..9b09b14c87 100644
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -1837,9 +1837,9 @@ MSG
# Clear attributes and changed_attributes
def clear_timestamp_attributes
%w(created_at created_on updated_at updated_on).each do |attribute_name|
- if self.has_attribute?(attribute_name)
+ if has_attribute?(attribute_name)
self[attribute_name] = nil
- self.changed_attributes.delete(attribute_name)
+ changed_attributes.delete(attribute_name)
end
end
end