From 8eb73f43e1f7eb6f7afa7838e64b259c81bc8a47 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 6 Apr 2006 16:16:29 +0000 Subject: Fixed that that multiparameter assignment doesn't work with aggregations (closes #4620) [Lars Pind] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4188 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/fixtures/customer.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activerecord/test/fixtures/customer.rb') diff --git a/activerecord/test/fixtures/customer.rb b/activerecord/test/fixtures/customer.rb index 2eba052eee..e23fd03ade 100644 --- a/activerecord/test/fixtures/customer.rb +++ b/activerecord/test/fixtures/customer.rb @@ -14,6 +14,10 @@ class Address def close_to?(other_address) city == other_address.city && country == other_address.country end + + def ==(other) + other.is_a?(self.class) && other.street == street && other.city == city && other.country == country + end end class Money -- cgit v1.2.3