When I have array of ids, like
ids = [2,3,5]
and I perform
Comment.find(ids)
everything works fine. But w
If you need more control (perhaps you need to state the table name) you can also do the following:
Model.joins(:another_model_table_name) .where('another_model_table_name.id IN (?)', your_id_array)