Class: Wallaby::Configuration::Sorting Deprecated
- Inherits:
-
Object
- Object
- Wallaby::Configuration::Sorting
- Defined in:
- lib/wallaby/configuration/sorting.rb
Overview
Deprecated.
Instance Method Summary collapse
- #strategy ⇒ Object deprecated Deprecated.
- #strategy=(_strategy) ⇒ Object deprecated Deprecated.
Instance Method Details
#strategy ⇒ Object
Deprecated.
19 20 21 22 23 |
# File 'lib/wallaby/configuration/sorting.rb', line 19 def strategy Deprecator.alert 'config.sorting.strategy', from: '0.3.0', alternative: <<~INSTRUCTION Please use controller_class.sorting_strategy instead. INSTRUCTION end |
#strategy=(_strategy) ⇒ Object
Deprecated.
8 9 10 11 12 13 14 15 16 |
# File 'lib/wallaby/configuration/sorting.rb', line 8 def strategy=(_strategy) Deprecator.alert 'config.sorting.strategy=', from: '0.3.0', alternative: <<~INSTRUCTION Please set #sorting_strategy= from the controller instead, for example: class Admin::ApplicationController < Wallaby::ResourcesController self.sorting_strategy = :multiple end INSTRUCTION end |