Forum: Ruby on Rails equality

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Grayson P. (Guest)
on 2008-10-24 10:07
is there a better way to test for equality than this

user1.interests.collect(&id).sort == user2.interests.collect(&id).sort


This topic is locked and can not be replied to.