mongoid/mongoid — pull request #1903 by suruja (2012-04-11 00:15:28+00:00)
Title: Unsupported Javascript selector in embedded document criteria added

As you suggested it (https://github.com/mongoid/mongoid/issues/1899), an error should occur when a Javascript selector is used in embedded document queries. That's why I send you this pull request to solve this issue. I hope you like my small first contribution :-)

Thank you for your great job!