Class: ClosureTree::Configuration
- Inherits:
-
Object
- Object
- ClosureTree::Configuration
- Defined in:
- lib/closure_tree/configuration.rb
Overview
Minimal configuration class to handle deprecated options
Instance Method Summary collapse
- #database_less=(_value) ⇒ Object
- #database_less? ⇒ Boolean (also: #database_less)
Instance Method Details
#database_less=(_value) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/closure_tree/configuration.rb', line 6 def database_less=(_value) ActiveSupport::Deprecation.new.warn( 'ClosureTree.configure { |config| config.database_less = true } is deprecated ' \ 'and will be removed in v10.0.0. The database_less option is no longer needed ' \ 'for modern deployment practices. Remove this configuration from your initializer.' ) # Ignore the value - this is a no-op for backward compatibility end |
#database_less? ⇒ Boolean Also known as: database_less
15 16 17 |
# File 'lib/closure_tree/configuration.rb', line 15 def database_less? false # Always return false since this option does nothing end |