Permalink
Browse files

revert ActiveRecord equality change. Closes #5596

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4554 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 7e5dd2e commit c51f9fdc78d1732d6c08a6411ca9d2536aa86d6e @technoweenie technoweenie committed Jul 5, 2006
Showing with 2 additions and 3 deletions.
  1. +2 −3 activerecord/lib/active_record/base.rb
@@ -1646,9 +1646,8 @@ def column_for_attribute(name)
def ==(comparison_object)
comparison_object.equal?(self) ||
(comparison_object.instance_of?(self.class) &&
- ((!comparison_object.new_record? && comparison_object.id == id) ||
- (comparison_object.new_record? && comparison_object.attributes == attributes))
- )
+ comparison_object.id == id &&
+ !comparison_object.new_record?)
end
# Delegates to ==

0 comments on commit c51f9fd

Please sign in to comment.