diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-09-18 15:53:38 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-09-18 15:53:38 -0700 |
commit | 096a57b7f340884175f724b55c7bbeda6318b356 (patch) | |
tree | 04a281d078e2b9058e6c85f2b8d99c70594eac4f /activerecord/lib/active_record | |
parent | 56bfd8a8c9c356573a7af033f88587bbd0c5a267 (diff) | |
download | rails-096a57b7f340884175f724b55c7bbeda6318b356.tar.gz rails-096a57b7f340884175f724b55c7bbeda6318b356.tar.bz2 rails-096a57b7f340884175f724b55c7bbeda6318b356.zip |
do what the superclass does in the case that objects do not match
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/core.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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 |