Sha256: aa060fd1e5beed803e5d44846a2c4f1c58af61723e451ef26636cc2e0444f732
Contents?: true
Size: 598 Bytes
Versions: 6
Compression:
Stored size: 598 Bytes
Contents
module Mongoid module NestedSerialization module Test # top level object class Account include ::Mongoid::Document embeds_many :items #, class_name: "Mongoid::NestedSerialization::Test::Item" end # second level object class Item include ::Mongoid::Document embedded_in :account, inverse_of: :items embeds_many :photos end # third level object class Photo include ::Mongoid::Document embedded_in :item, inverse_of: :photos end end end end
Version data entries
6 entries across 6 versions & 1 rubygems