> > > Yes, I know about this AR behavior. > > I think, would be correct if the comparison works both ways. > > For beginners, it looks like a bug. > > Is it really worth monkeypatching Array#eql? for this? I think not. >
I almost posted the same thing earlier, but had a second thought. Would it not be easier to create a to_a method on the ActiveRecord resultset object (whatever that is)? It's not going to be as efficient as it will then (at that point) need to instantiate all result objects to compare, but it would then work both ways round... But I didn't get a chance to look further in to it to test the theory/idea. Cheers, Andy -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.