RubyGems.org

arboreal

0.2.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.

installgem install arboreal -v 0.2.0
Authors

Mike Williams

25,250 total downloads 1,986 for this version
Owners

60fd293984c98c779cc895b7a7b9f217

Gemfile
gem 'arboreal', '~> 0.2.0'
Versions
  1. 0.2.1 December 18, 2012 (9 KB)
  2. 0.2.0 November 2, 2011 (9 KB)
  3. 0.1.2 May 5, 2011 (9 KB)
  4. 0.1.1 September 13, 2010 (9 KB)
  5. 0.1.0 April 17, 2010 (9 KB)
Show all versions (10 total)