When I have array of ids, like
ids = [2,3,5]
and I perform
Comment.find(ids)
everything works fine. But w
You can also use it in named_scope if You want to put there others conditions
for example include some other model:
named_scope 'get_by_ids', lambda { |ids| { :include => [:comments], :conditions => ["comments.id IN (?)", ids] } }