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.
6fa76b3113f66ea5055ad3f10ab92819?d=identicon&s=25 Grayson Piercee (grayson)
on 2008-10-24 08: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.