ExportXMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor - P4
    • 9.1.2
    • Affects Version/s: 9.1.1, 9.0.12
    • Component/s: None
    • None
    • None
    • Ruby Drivers
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      When a nested has_many attribute includes an id that isn't in the association, Mongoid raises DocumentNotFound with params that include the parent's id. It builds that with parent.id instead of the association's primary key.

      If the association uses a custom primary_key, the value in the error ends up wrong. This is purely an issue with the error message; nothing functional breaks, but I can see it sending someone looking in the wrong place.

            Assignee:
            Jamis Buck
            Reporter:
            Jamis Buck
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: