arboreal 0.1.0
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.
Gemfile:
=
安裝:
=
Runtime 相依性套件 (2):
activerecord
>= 2.3.0
activesupport
>= 2.3.0
Development 相依性套件 (1):
rspec
>= 1.2.9