Class: Wallaby::Configuration::Sorting Deprecated

Inherits:
Object
  • Object
show all
Defined in:
lib/wallaby/configuration/sorting.rb

Overview

Deprecated.

Instance Method Summary collapse

Instance Method Details

#strategyObject

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