ancestry

Ancestry allows the records of a ActiveRecord model to be organized in a tree structure, using a single, intuitively formatted database column. It exposes all the standard tree structure relations (ancestors, parent, root, children, siblings, descendants) and all of them can be fetched in a single sql query. Additional features are named_scopes, integrity checking, integrity restoration, arrangement of (sub)tree into hashes and different strategies for dealing with orphaned records.

Gem Information

Homepage: http://github.com/stefankroes/ancestry

rubygems.org: https://rubygems.org/gems/ancestry

Version: 2.1.0

Total Downloads: 1,677,196

Depends on 1 gems

Package Environment Gem Version Rawhide Fedora 24 Fedora 23
activerecord runtime 4.2.6 4.2.6 4.2.5.2 4.2.32.fc23</a (<a href="https://bodhi.fedoraproject.org/updates/?builds=rubygemactiverecord4.2.3