mongoid/mongoid — pull request #1660 by priyaaank (2012-01-31 14:11:19+00:00)
Title: Made fix for #1656 more efficient.

Changed "reduce" call to "any?" on scope enumerable. "any?" is more readable and more efficient. As discussed here https://github.com/mongoid/mongoid/commit/791a6d111de053333461dd775725803c74a8e7e5