Registry / orm / nested-set

nested-set

JSON →
library1.7.1rbrubygemsunverified

An awesome nested set implementation for Active Record

gem install nested_set
INSTALL
IMPORT
SIG · NESTED-SET
N
nested-set
ormrubyv1.7.1
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.

NestedSet
require 'nested_set'

Use nested set for hierarchical data in Active Record

require 'nested_set' class Category < ActiveRecord::Base acts_as_nested_set end root = Category.create(name: 'Root') child = root.children.create(name: 'Child')
Debug
Known issues
gotchaRequires database columns: lft, rgt, parent_id
fix
Add migration with integer columns lft, rgt, parent_id
affects: >= 1.0.0
Upgrade
Version history
1.7.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
22
OpenAI (training)
3
Resources
nested-set — gem install nested-set · libregistry