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