mongoid/mongoid — pull request #1727 by lyleunderwood (2012-02-17 00:42:21+00:00)
Title: add support for embeds_many when querying Enumerable

Mongoid::Matchers::Strategies.extract_attributes was not taking into account the possibility of an array result, as in the case of an embeds_many.

This fix is fairly dumb.