L
Luca Roma
i have 2 arrays of objects: dates and places
dates have attribute place_id
and places have id
I must to selezionate all places that have id in array of objects dates.
dates.select{|obj| obj.place_id in places[].id }
How i can replace "in places[].id " to works it?
Thanks
dates have attribute place_id
and places have id
I must to selezionate all places that have id in array of objects dates.
dates.select{|obj| obj.place_id in places[].id }
How i can replace "in places[].id " to works it?
Thanks