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

Matchable does not support dot notation that represents array indexing

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 6.1.1, 5.2.1
    • Affects Version/s: 5.2.0
    • Component/s: None
    • None
    • Environment:
      Ruby 2.2.3

      If you have a document like

      { "occupants" : ["Tim", "Logan"] }

      and you do

      document.matches?("occupants.0" => "Tim")

      then it currently returns false.

      This pull request fixes it: https://github.com/mongodb/mongoid/pull/4382

            Assignee:
            emily.stolfo Emily Stolfo
            Reporter:
            jonhyman Jon Hyman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: