rails / acts_as_nested_set

ActsAsNestedSet

This URL has Read+Write access

acts_as_nested_set / README
100644 15 lines (9 sloc) 0.527 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
ActsAsNestedSet
==============
 
This acts_as extension provides Nested Set functionality. Nested Set is similiar to Tree, but with the added feature that you can select the children and all of their descendents with a single query. A good use case for this is a threaded post system, where you want to display every reply to a comment without multiple selects.
 
 
Example
=======
 
  class Product < ActiveRecord::Base
    acts_as_nested_set
  end
 
 
Copyright (c) 2007 David Heinemeier Hansson, released under the MIT license