Module: Glue::Hierarchical
- Defined in:
- lib/glue/hierarchical.rb
Overview
Transform the base class to a hierarchical node. A selection of different implementation strategies are provided.
Example
class Comment
is Hierarchical, :method => :nested_sets
end
:method
-
:simple :nested_sets :nested_intervals
Class Method Summary collapse
Class Method Details
.included_with_params(base, options) ⇒ Object
131 132 133 134 135 136 137 138 |
# File 'lib/glue/hierarchical.rb', line 131 def self.included_with_params(base, ) o = { :method => :nested_sets, } o.update() if base.include(NestedSets, o) end |