From: Aaron Patterson Date: 2014-01-10T09:34:26-08:00 Subject: [ruby-core:59684] Re: [ruby-trunk - Feature #7688] Error hiding with rb_rescue() on Comparable#==, #coerce and others On Fri, Jan 10, 2014 at 07:35:14AM +0900, marcandre (Marc-Andre Lafortune) wrote: > > Issue #7688 has been updated by marcandre (Marc-Andre Lafortune). > > > The method `<=>` should return `nil` for objects that are not comparable, not raise errors. > > So this seems to be a misunderstanding/bug in Rails. > > It might be best to add a warning to Ruby 2.2 if an exception is caught by `==` and we can not intercept it in 2.3? I think probably a warning would be better than just blowing up in Ruby 2.2. I *did* know that <=> was raising exceptions before this change via `ruby -d`, but I should've fixed it. :-) -- Aaron Patterson http://tenderlovemaking.com/