RubyGems.org

ancestry

2.1.0

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.

installgem install ancestry
Authors

Stefan Kroes

675,208 total downloads 40,816 for this version
Owners

8acc6a033ff7e6ae28266284842e0d9267364c084713f82d505a52316d90dabd6b03a585714720f790097be85dee458c4513e5a669f2058d00532128d7cf607967da08e8f01375a7a87573aa179743b0

Licenses

MIT

Gemfile
gem 'ancestry', '~> 2.1.0'
Versions
  1. 2.1.0 April 16, 2014 (16 KB)
  2. 2.0.0 May 17, 2013 (16 KB)
  3. 2.0.0.rc1 May 7, 2013 (15.5 KB)
  4. 1.3.0 May 3, 2012 (15 KB)
  5. 1.2.5 March 14, 2012 (15 KB)
Show all versions (16 total)
Runtime Dependencies
  1. activerecord >= 3.0.0
Ruby Dependency
  1. >= 0