Sha256: a3a58adaa690b90fca1269ce68c5bed34cf90faa92dfd8c741f62e0a126fcf2c

Contents?: true

Size: 537 Bytes

Versions: 19

Compression:

Stored size: 537 Bytes

Contents

module Fruits
  class Apple
    include Mongoid::Document
    has_many :bananas, class_name: "Fruits::Banana"
    recursively_embeds_many
  end

  class Banana
    include Mongoid::Document
    belongs_to :apple, class_name: "Fruits::Apple"
  end

  class Pineapple
    include Mongoid::Document
    recursively_embeds_many cascade_callbacks: true
  end

  class Mango
    include Mongoid::Document
    recursively_embeds_one cascade_callbacks: true
  end

  module Big
    class Ananas
      include Mongoid::Document
    end
  end
end

Version data entries

19 entries across 19 versions & 4 rubygems

Version Path
mongoid-paranoia-1.1.0 spec/app/models/fruits.rb
mongoid-paranoia-1.0.1 spec/app/models/fruits.rb
mongoid-3.1.7 spec/app/models/fruits.rb
mongoid-paranoia-1.0.0 spec/app/models/fruits.rb
mongoid-versioning-1.0.0 spec/app/models/fruits.rb
mongoid-paranoia-1.0.0.beta2 spec/app/models/fruits.rb
mongoid-versioning-1.0.0.beta2 spec/app/models/fruits.rb
mongoid-paranoia-1.0.0.beta1 spec/app/models/fruits.rb
mongoid-versioning-1.0.0.beta1 spec/app/models/fruits.rb
mongoid-3.1.6 spec/app/models/fruits.rb
mongoid-3.1.5 spec/app/models/fruits.rb
mongoid_rails4-4.0.0 spec/app/models/fruits.rb
mongoid-paranoia-0.3.0 spec/app/models/fruits.rb
mongoid-paranoia-0.2.1 spec/app/models/fruits.rb
mongoid-versioning-0.2.0 spec/app/models/fruits.rb
mongoid-paranoia-0.2.0 spec/app/models/fruits.rb
mongoid-paranoia-0.1.1 spec/app/models/fruits.rb
mongoid-versioning-0.1.0 spec/app/models/fruits.rb
mongoid-paranoia-0.1.0 spec/app/models/fruits.rb