I have an array of objects and I want to add another object just if the attribute object.id doesn’t match any of the ids of the objects I have in the array.
I know I can go through the array and checking one buy one, but is there any easier way of doing so in Ruby?
or