is there a better way to test for equality than this
user1.interests.collect(&id).sort == user2.interests.collect(&id).sort
TIA
GP
is there a better way to test for equality than this
user1.interests.collect(&id).sort == user2.interests.collect(&id).sort
TIA
GP
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs