lib/mongoid/contextual/map_reduce.rb in mongoid-4.0.0.alpha1 vs lib/mongoid/contextual/map_reduce.rb in mongoid-4.0.0.alpha2

- old
+ new

@@ -266,10 +266,12 @@ # @return [ Array, Cursor ] The documents. # # @since 3.0.0 def documents return results["results"] if results.has_key?("results") - session[output_collection].find + query = session[output_collection].find + query.no_timeout if criteria.options[:timeout] == false + query end # Get the collection that the map/reduce results were stored in. # # @api private