Matchable does not support dot notation that represents array indexing

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Jon Hyman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: