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

Keep track of discriminator_mapping in Parent

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 7.2.0.rc1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Minor Change

      When given a document in the past, to figure out which class it belonged to, one could just look at the `_type` field and constantize the class there. Now that the discriminator value is no longer the class name, we have to keep a mapping of discriminator value to class name.

            Assignee:
            neil.shweky@mongodb.com Neil Shweky (Inactive)
            Reporter:
            neil.shweky@mongodb.com Neil Shweky (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: