diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-04-06 16:16:29 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-04-06 16:16:29 +0000 |
commit | 8eb73f43e1f7eb6f7afa7838e64b259c81bc8a47 (patch) | |
tree | 2a00f89e62559f843786a9101016dbce1e1ed8b7 /activerecord/test/fixtures/customer.rb | |
parent | 64003677b7063aabc2a943e75e56b48cae6b15f7 (diff) | |
download | rails-8eb73f43e1f7eb6f7afa7838e64b259c81bc8a47.tar.gz rails-8eb73f43e1f7eb6f7afa7838e64b259c81bc8a47.tar.bz2 rails-8eb73f43e1f7eb6f7afa7838e64b259c81bc8a47.zip |
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
Diffstat (limited to 'activerecord/test/fixtures/customer.rb')
-rw-r--r-- | activerecord/test/fixtures/customer.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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 |