my point is that === is a standard operator, and you have to be careful when overriding them. Why do you want == and === to return differently? surely if the DB id refers to the same value then so with the contents?
yeah, reduce doesn't work for me because you're not really reducing, and each_with_object is nice except that you *always* want to append to this new enumerable object you've created, so it seems superfluous to me
RougeT430: once you've repasted, take a look at this method and see if you can tell what's wrong: https://gist.github.com/CodePint/a6f33d989176fa96940b1d23e293c9be#file-rand01-rb-L24-L28