From 096a57b7f340884175f724b55c7bbeda6318b356 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 18 Sep 2013 15:53:38 -0700 Subject: do what the superclass does in the case that objects do not match --- activerecord/lib/active_record/core.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/core.rb b/activerecord/lib/active_record/core.rb index b4d6474caa..07d997b719 100644 --- a/activerecord/lib/active_record/core.rb +++ b/activerecord/lib/active_record/core.rb @@ -312,6 +312,8 @@ module ActiveRecord def <=>(other_object) if other_object.is_a?(self.class) self.to_key <=> other_object.to_key + else + super end end -- cgit v1.2.3