module FastTree::Model::Subtree::Traverse

Public Instance Methods

subtree() click to toggle source
# File lib/fast_tree/model/subtree/traverse.rb, line 12
def subtree
  self.class.where(self.class.arel_table[:l_ptr].gteq(l_ptr))
            .where(self.class.arel_table[:r_ptr].lteq(r_ptr))
end