Sha256: 930b978e06635c00ac853df514e063a3e4e141ca11e8e18743a75ea4443b44f7

Contents?: true

Size: 219 Bytes

Versions: 24

Compression:

Stored size: 219 Bytes

Contents

class RootCategory
  include Mongoid::Document
  embeds_many :categories
end

class Category
  include Mongoid::Document
  embedded_in :root_category
  embedded_in :category
  embeds_many :categories

  field :name
end

Version data entries

24 entries across 24 versions & 5 rubygems

Version Path
mongoid_spacial-0.2.17 spec/models/category.rb
sig_mongoid_spacial-0.2.17 spec/models/category.rb
cb_mongoid_spacial-0.2.16 spec/models/category.rb
mongoid_geospatial-1.0.0 spec/models/category.rb
mongoid_geospatial-1.0.0rc1 spec/models/category.rb
mongoid_geospatial-1.0.0rc0 spec/models/category.rb
mongoid_spacial-0.2.16 spec/models/category.rb
mongoid_spacial-0.2.13 spec/models/category.rb
mongoid_spacial-0.2.12 spec/models/category.rb
mongoid_spacial-0.2.11 spec/models/category.rb
mongoid_spacial-0.2.10 spec/models/category.rb
mongoid_spacial-0.2.8 spec/models/category.rb
mongoid_spacial-0.2.7 spec/models/category.rb
mongoid_spacial-0.2.6 spec/models/category.rb
mongoid_spacial-0.2.5 spec/models/category.rb
mongoid_spacial-0.2.4 spec/models/category.rb
mongoid_spacial-0.2.3 spec/models/category.rb
mongoid_spacial-0.2.2 spec/models/category.rb
mongoid_spacial-0.2.0 spec/models/category.rb
mongoid_spacial-0.1.1 spec/models/category.rb