It's a tricky edge case to get right. 

Mongoid's behaviour is (as always) a bit weird, so to build up a collection of `$in` statements inside an `$all` array you have to declare multiple `all_of` criteria which isn't very obvious at all.