Merge pull request #45 from datanoise/master

Fixes map_reduce call
This commit is contained in:
Kyle Banker 2011-05-25 13:27:10 -07:00
commit d8d929c647
1 changed files with 1 additions and 1 deletions

View File

@ -564,7 +564,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