Allow using exists? with args on relations

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Unknown
    • 9.0.0, 8.1.4
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None

      The following should be supported:

      person.posts.exists?({ title: "50 Ways to Leave Your Lover" })

      Note that the following works today:

      Post.exists?({ title: "50 Ways to Leave Your Lover" })

      This was missed in the original implementation MONGOID-5100

              Assignee:
              Jamis Buck
              Reporter:
              Johnny Shields
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: