Registry / orm / ancestry

ancestry

JSON →
library5.1.0rbrubygemsunverified

Ancestry allows ActiveRecord model records to be organized in a tree structure using the materialized path pattern.

gem install ancestry
INSTALL
IMPORT
SIG · ANCESTRY
A
ancestry
ormrubyv5.1.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.

Ancestry
require 'ancestry'

Define a tree structure with Ancestry

require 'ancestry' class Category < ActiveRecord::Base has_ancestry end root = Category.create(name: 'Root') child = root.children.create(name: 'Child') puts child.ancestors.map(&:name)
Debug
Known issues

No known issues recorded.

Upgrade
Version history
5.1.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
42 hits · last 30 days
node
36
OpenAI (training)
1
Resources
ancestry — gem install ancestry · libregistry