Dup/Select/Uniq 11.380000 0.100000 11.480000 ( 11.517070) Group_By 0.020000 0.000000 0.020000 ( 0.014287) ----------------------------------------- total: 11.500000sec
Ruby On group objects in array
by toro04,
March 31, 2010 18:14
grouped = [] arr = [#<Foo id: 1, status_id: 2, profile_id: 3>,#<Foo id: 2, status_id: 2, profile_id: 3>,#<Foo id: 3, status_id: 1, profile_id: 3>] arr_copy = arr ...
Ruby group objects in array
I'm looking for an optimal ...
Ben, thanks for showing me ...