lib/mongoid/contextual/mongo.rb in mongoid-6.0.0.beta vs lib/mongoid/contextual/mongo.rb in mongoid-6.0.0.rc0

- old
+ new

@@ -303,11 +303,10 @@ # @return [ Array ] The result of mapping. def map(field = nil, &block) if block_given? super(&block) else - field = field.to_sym - criteria.only(field).map(&field.to_proc) + criteria.pluck(field) end end # Create the new Mongo context. This delegates operations to the # underlying driver.