From 03afd82000df221a0689248f171ba06b354892ea Mon Sep 17 00:00:00 2001 From: Kent Sibilev Date: Sun, 22 May 2011 21:17:08 -0400 Subject: [PATCH] deleting :raw option, otherwise map_reduce fails on the server --- lib/mongo/collection.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mongo/collection.rb b/lib/mongo/collection.rb index 315982b..0be45e0 100644 --- a/lib/mongo/collection.rb +++ b/lib/mongo/collection.rb @@ -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