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

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

    • Type: Icon: Task Task
    • Resolution: Done
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      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

            Assignee:
            Unassigned Unassigned
            Reporter:
            shingara Cyril Mougel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: