Forum: Ruby on Rails equality

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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

TIA

GP
This topic is locked and can not be replied to.