# File lib/mongoid/criterion/inclusion.rb, line 35 def all_of(*args) clone.tap do |crit| unless args.empty? criterion = @selector["$and"] || [] converted = BSON::ObjectId.convert(klass, args.flatten) expanded = converted.collect { |hash| hash.expand_complex_criteria } crit.selector["$and"] = criterion.concat(expanded) end end end