Module: ActsAsRecursiveTree::Builders::Strategies::Ancestor
- Defined in:
- lib/acts_as_recursive_tree/builders/strategies/ancestor.rb
Overview
Strategy for building ancestors 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/ancestor.rb', line 13 def self.build(builder) builder.travers_loc_table[builder.parent_key].eq(builder.base_table[builder.primary_key]) end |