diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2005-12-08 04:46:57 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2005-12-08 04:46:57 +0000 |
commit | d496db1388bd0d3f43c0c35547942fb4abb4082c (patch) | |
tree | 312b01c4725b7d27be0d394345a2fae803712a53 /activerecord/test/fixtures/customer.rb | |
parent | e466fc45cade7cbc0ee5a0e7181e377dd3780043 (diff) | |
download | rails-d496db1388bd0d3f43c0c35547942fb4abb4082c.tar.gz rails-d496db1388bd0d3f43c0c35547942fb4abb4082c.tar.bz2 rails-d496db1388bd0d3f43c0c35547942fb4abb4082c.zip |
Reloading an instance refreshes its aggregations as well as its associations. References #3024.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3242 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 c36d4d33a8..2eba052eee 100644 --- a/activerecord/test/fixtures/customer.rb +++ b/activerecord/test/fixtures/customer.rb @@ -44,4 +44,8 @@ class GpsLocation def longitude gps_location.split("x").last end + + def ==(other) + self.latitude == other.latitude && self.longitude == other.longitude + end end
\ No newline at end of file |