Sha256: 61cb732824ededffc0e6e21c8cb7a7e7ea55c8c4779940ea2850f0d0ead10415

Contents?: true

Size: 378 Bytes

Versions: 3

Compression:

Stored size: 378 Bytes

Contents

module ActsAsRecursiveTree
  module Builders
    module Strategy
      #
      # Strategy for building descendants relation
      #
      module Descendant
        #
        # Builds the relation
        #
        def self.build(builder)
          builder.base_table[builder.parent_key].eq(builder.travers_loc_table[builder.primary_key])
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
acts_as_recursive_tree-2.2.1 lib/acts_as_recursive_tree/builders/strategy/descendant.rb
acts_as_recursive_tree-2.2.0 lib/acts_as_recursive_tree/builders/strategy/descendant.rb
acts_as_recursive_tree-2.1.1 lib/acts_as_recursive_tree/builders/strategy/descendant.rb