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/configuration.rb,
lib/closure_tree/support_flags.rb,
lib/closure_tree/has_closure_tree.rb,
lib/closure_tree/association_setup.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, AssociationSetup, DeterministicOrdering, Digraphs, Finders, Generators, HasClosureTree, HasClosureTreeRoot, HashTree, HashTreeSupport, HierarchyMaintenance, Model, NumericDeterministicOrdering, NumericOrderSupport, SupportAttributes, SupportFlags, Test Classes: Configuration, MultipleRootError, RootOrderingDisabledError, Support
Constant Summary collapse
- VERSION =
Gem::Version.new('9.1.1')
Class Method Summary collapse
Class Method Details
.configure ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/closure_tree.rb', line 11 def self.configure if block_given? # Create a temporary configuration object to capture deprecated settings config = Configuration.new yield config else ActiveSupport::Deprecation.new.warn( 'ClosureTree.configure is deprecated and will be removed in a future version. ' \ 'Configuration is no longer needed.' ) end end |