Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-1877

$gt $gte $lt $lte works with embedded collection when you use the dot notation

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 12_01_17
    • Component/s: None
    • Labels:
      None

      Description

      This pull request can fix the issue MONGOID-1783.

      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

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: