mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
removes a couple of redundant selfs
This commit is contained in:
parent
74049b57fb
commit
9332cc582e
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue