I have an array of products ids, which I would like to use for filtering a list of buying sessions. So far so good:
Session.where('product_id': [23, 32, 17])
I also have an array of dates, which specify for each product (differently) from which date should I even consider their sessions: ['12/2/17', '1/1/17', '20/3/17']
So in other words: product id 23, should only be considered for sessions created after 12/2/17, product id 32, should only be considered for sessions created after 1/1/17, and so on...
What is the right rails command to also consider the product dates when selecting sessions about the wanted product ids?