Sha256: 0f5fe257d8797e3d6d9bb5676eb1fc3280ef5415acbcecd55e69efb1e7d58b3c

Contents?: true

Size: 239 Bytes

Versions: 24

Compression:

Stored size: 239 Bytes

Contents

module Fruits
  class Apple
    include Mongoid::Document
    references_many :bananas, :class_name => "Fruits::Banana"
  end

  class Banana
    include Mongoid::Document
    referenced_in :apple, :class_name => "Fruits::Apple"
  end
end

Version data entries

24 entries across 24 versions & 5 rubygems

Version Path
mongoid_spacial-0.1.0 spec/models/fruits.rb
mongoid_spacial-0.0.1 spec/models/fruits.rb
mongoid-eager-loading-0.3.1 spec/models/fruits.rb
mongoid-eager-loading-0.3.0 spec/models/fruits.rb