diff options
Diffstat (limited to 'activerecord/test/fixtures')
-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 |