Moped does not set _type for STI collections

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            Tilo S
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: