Sha256: 90989bfb6dfd8249a705636070fe3f1b651374b1c8f3990edf1aeb7fcbf11d2e
Contents?: true
Size: 627 Bytes
Versions: 1
Compression:
Stored size: 627 Bytes
Contents
# frozen_string_literal: true module ActsAsRecursiveTree module Builders class Leaves < Descendants def create_select_manger(column = nil) select_manager = super select_manager.where( travers_loc_table[primary_key].not_in( travers_loc_table.where( travers_loc_table[parent_key].not_eq(nil) ).project(travers_loc_table[parent_key]) ) ) select_manager end def get_query_options(&_block) # do not allow any custom options ActsAsRecursiveTree::Options::QueryOptions.new end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
acts_as_recursive_tree-3.5.0 | lib/acts_as_recursive_tree/builders/leaves.rb |