mongoid/mongoid — pull request #3878 by dedene (2014-12-05 13:47:04+00:00)
Title: Fix for bug with GET_MORE in combination with QueryCache

For bigger collections, I came across this minor bug: the first time a query is run which calls GET_MORE, the result is too large - the resulting array contained all documents from the first part twice or more.

This fixes the issue. Without the change in `lib/mongoid/query_cache.rb` the new spec fails. With the change, it passes.