mongoid/mongoid — pull request #1876 by shingara (2012-03-30 11:56:51+00:00)
Title: $gt $gte $lt $lte works with embedded collection when you use the dot notation

This pull request can fix the issue #1782.

When you do a criteria with dot notation on a embedded document, you get an array of result. Before this commit. You can't manage this array in Gt/Gte/Lt/Lte matcher.

I change spec in gte_spec.rb to use described_class instead of Mongoid::Matcher::Gte like other spec in matcher.

I fix spec to use $gte instead of $gt in gt_spec.rb