Module: ClosureTree

Defined in:
lib/closure_tree/support.rb,
lib/closure_tree.rb,
lib/closure_tree/model.rb,
lib/closure_tree/finders.rb,
lib/closure_tree/version.rb,
lib/closure_tree/digraphs.rb,
lib/closure_tree/hash_tree.rb,
lib/closure_tree/arel_helpers.rb,
lib/closure_tree/test/matcher.rb,
lib/closure_tree/support_flags.rb,
lib/closure_tree/has_closure_tree.rb,
lib/closure_tree/hash_tree_support.rb,
lib/closure_tree/support_attributes.rb,
lib/closure_tree/active_record_support.rb,
lib/closure_tree/has_closure_tree_root.rb,
lib/closure_tree/hierarchy_maintenance.rb,
lib/closure_tree/numeric_order_support.rb,
lib/closure_tree/deterministic_ordering.rb,
lib/closure_tree/numeric_deterministic_ordering.rb,
lib/generators/closure_tree/migration_generator.rb

Overview

This module is only included if the order column is an integer.

Defined Under Namespace

Modules: ActiveRecordSupport, ArelHelpers, DeterministicOrdering, Digraphs, Finders, Generators, HasClosureTree, HasClosureTreeRoot, HashTree, HashTreeSupport, HierarchyMaintenance, Model, NumericDeterministicOrdering, NumericOrderSupport, SupportAttributes, SupportFlags, Test Classes: MultipleRootError, RootOrderingDisabledError, Support

Constant Summary collapse

VERSION =
Gem::Version.new('9.1.0')

Class Method Summary collapse

Class Method Details

.configureObject



11
12
13
14
15
16
17
# File 'lib/closure_tree.rb', line 11

def self.configure
  ActiveSupport::Deprecation.new.warn(
    'ClosureTree.configure is deprecated and will be removed in a future version. ' \
    'Configuration is no longer needed.'
  )
  yield if block_given?
end