Arboreal is yet another extension to ActiveRecord to support tree-shaped data structures.
Internally, Arboreal maintains a computed "ancestry_string" column, which caches the path from the root of
a tree to each node, allowing efficient retrieval of both ancestors and descendants.
Arboreal surfaces relationships within the tree like "children", "ancestors", "descendants", and "siblings"
as scopes, so that additional filtering/pagination can be performed.

Required Ruby Version:
None

Licenses:

N/A

Gemfile:

=Copy to clipboardCopied!

install:

=Copy to clipboardCopied!

Links:

RubyGems.org is the Ruby community’s gem hosting service. Instantly publish your gems and install them. Use the API to interact and find out more information about available gems. Become a contributor and enhance the site with your own changes.