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