Registry / database / mongoid-tree

mongoid-tree

JSON →
library2.3.0rbrubygemsunverified

A tree structure for Mongoid documents using the materialized path pattern

gem install mongoid-tree
INSTALL
IMPORT
SIG · MONGOID-TREE
M
mongoid-tree
databaserubyv2.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Mongoid::Tree
require 'mongoid/tree'

Create a tree structure with Mongoid documents using parent-child relationships

require 'mongoid/tree' class Category include Mongoid::Document include Mongoid::Tree end root = Category.create!(name: 'Root') child = Category.create!(name: 'Child', parent: root) puts root.children.map(&:name)
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.3.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
20
OpenAI (training)
1
Resources
mongoid-tree — gem install mongoid-tree · libregistry