diff options
author | Xavier Noria <fxn@hashref.com> | 2010-11-26 00:35:23 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-11-26 00:35:23 +0100 |
commit | 9332cc582ebaa9b6755fa7bdfe0bc04dd51c098d (patch) | |
tree | 387535d280a1439069ca3cebf35376325fac7d9c /activerecord | |
parent | 74049b57fba3d26a5c9ac220619362ff36893b13 (diff) | |
download | rails-9332cc582ebaa9b6755fa7bdfe0bc04dd51c098d.tar.gz rails-9332cc582ebaa9b6755fa7bdfe0bc04dd51c098d.tar.bz2 rails-9332cc582ebaa9b6755fa7bdfe0bc04dd51c098d.zip |
removes a couple of redundant selfs
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/base.rb | 4 |
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 |