Regression of using #only and accessing subdocuments via [] accessor

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This worked on 5.1.1 and is broken in 5.1.2 due to this commit:

      https://github.com/mongodb/mongoid/commit/da2f39d51eddd804b78bb6b7c274d3357e89c9f2

      Agent.only("address.city").first['address.city']

      Pull with specs is forthcoming.

              Assignee:
              Unassigned
              Reporter:
              Jon Hyman
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: