Module: ActsAsRecursiveTree::Builders::Strategies::Descendant
- Defined in:
- lib/acts_as_recursive_tree/builders/strategies/descendant.rb
Overview
Strategy for building descendants relation
Class Method Summary collapse
-
.build(builder) ⇒ Object
Builds the relation.
Class Method Details
.build(builder) ⇒ Object
Builds the relation
13 14 15 |
# File 'lib/acts_as_recursive_tree/builders/strategies/descendant.rb', line 13 def self.build(builder) builder.base_table[builder.parent_key].eq(builder.travers_loc_table[builder.primary_key]) end |