Sha256: 0be0439a0eb76daef32c306ffef87eed41b922d8d9a5637e8c83a374cb6f600a

Contents?: true

Size: 322 Bytes

Versions: 2

Compression:

Stored size: 322 Bytes

Contents

# frozen_string_literal: true

module ActsAsRecursiveTree
  module Builders
    class Ancestors < RelationBuilder
      self.traversal_strategy = ActsAsRecursiveTree::Builders::Strategies::Ancestor

      def get_query_options(&)
        opts = super
        opts.ensure_ordering!
        opts
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
acts_as_recursive_tree-4.1.0 lib/acts_as_recursive_tree/builders/ancestors.rb
acts_as_recursive_tree-4.0.0 lib/acts_as_recursive_tree/builders/ancestors.rb