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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 12_01_17
    • Affects Version/s: None
    • Component/s: 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 Unassigned
            Reporter:
            jonhyman Jon Hyman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: