Gem in a Box
-
ancestry (1.3.0 - 4.0.0)
gem install ancestry -v "4.0.0"gem install ancestry -v "3.2.1"gem install ancestry -v "3.1.0"gem install ancestry -v "3.0.7"gem install ancestry -v "3.0.6"gem install ancestry -v "3.0.5"gem install ancestry -v "3.0.2"gem install ancestry -v "3.0.1"gem install ancestry -v "2.1.0"gem install ancestry -v "1.3.0"Ancestry allows the records of a ActiveRecord model to be organized in a tree structure, using the materialized path pattern. It exposes the standard relations (ancestors, parent, root, children, siblings, descendants) and allows them to be fetched in a single query. Additional features include named scopes, integrity checking, integrity restoration, arrangement of (sub)tree into hashes and different strategies for dealing with orphaned records.