I have two array of objects for example:
a1 = [obj1, obj2 , obj3]
a2 = [obj4, obj5, obj6]
Each array has different objects of the same class. I want to check whether they have the same attribute value (obj1.att == obj4.att) in a single iteration.
a1.each will do iteration on a single array. I don't want to use for or while loop. I want a rails way to do that.