aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record')
-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