deleting :raw option, otherwise map_reduce fails on the server

This commit is contained in:
Kent Sibilev 2011-05-22 21:17:08 -04:00
parent 98abe355fa
commit 03afd82000
1 changed files with 1 additions and 1 deletions

View File

@ -565,7 +565,7 @@ module Mongo
def map_reduce(map, reduce, opts={})
map = BSON::Code.new(map) unless map.is_a?(BSON::Code)
reduce = BSON::Code.new(reduce) unless reduce.is_a?(BSON::Code)
raw = opts[:raw]
raw = opts.delete(:raw)
hash = BSON::OrderedHash.new
hash['mapreduce'] = self.name