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

Moped does not set _type for STI collections

    • Type: Icon: Task Task
    • Resolution: Done
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      class SubType < ParentType; end
      class ParentType
      Mongoid::Document
      end

      SubType.collection.insert( array_of_hashes )

      => _type : nil for all inserted records , which means that they belong to the ParentType, not the SubType.

            Assignee:
            Unassigned Unassigned
            Reporter:
            tilo Tilo S
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: