Permalink
Browse files

removes a couple of redundant selfs

  • Loading branch information...
fxn committed Nov 25, 2010
1 parent 74049b5 commit 9332cc582ebaa9b6755fa7bdfe0bc04dd51c098d
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/base.rb
@@ -1837,9 +1837,9 @@ def populate_with_current_scope_attributes
# 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

0 comments on commit 9332cc5

Please sign in to comment.