Sha256: 8f79de8f5747d4d94851722d47f9e8a8c07196d5c002d04782af92603c537e13

Contents?: true

Size: 721 Bytes

Versions: 13

Compression:

Stored size: 721 Bytes

Contents

# frozen_string_literal: true
# encoding: utf-8

module CopyableSpec
  class A
    include Mongoid::Document

    embeds_many :locations
    embeds_many :influencers
  end

  class Location
    include Mongoid::Document

    embeds_many :buildings
  end

  class Building
    include Mongoid::Document
  end

  class Influencer
    include Mongoid::Document

    embeds_many :blurbs
  end

  class Youtuber < Influencer
  end

  class Blurb
    include Mongoid::Document
  end

  # Do not include Attributes::Dynamic
  class Reg
    include Mongoid::Document

    field :name, type: String
  end

  class Dyn
    include Mongoid::Document
    include Mongoid::Attributes::Dynamic

    field :name, type: String
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
mongoid-7.3.5 spec/mongoid/copyable_spec_models.rb
mongoid-7.3.4 spec/mongoid/copyable_spec_models.rb
mongoid-7.2.6 spec/mongoid/copyable_spec_models.rb
mongoid-7.3.3 spec/mongoid/copyable_spec_models.rb
mongoid-7.3.2 spec/mongoid/copyable_spec_models.rb
mongoid-7.2.5 spec/mongoid/copyable_spec_models.rb
mongoid-7.2.4 spec/mongoid/copyable_spec_models.rb
mongoid-7.3.1 spec/mongoid/copyable_spec_models.rb
mongoid-7.3.0 spec/mongoid/copyable_spec_models.rb
mongoid-7.2.3 spec/mongoid/copyable_spec_models.rb
mongoid-7.2.2 spec/mongoid/copyable_spec_models.rb
mongoid-7.2.1 spec/mongoid/copyable_spec_models.rb
mongoid-7.2.0 spec/mongoid/copyable_spec_models.rb