Class: Wallaby::Configuration::Mapping Deprecated

Inherits:
Object
  • Object
show all
Includes:
Wallaby::Classifier
Defined in:
lib/wallaby/configuration/mapping.rb

Overview

Deprecated.

Instance Method Summary collapse

Methods included from Wallaby::Classifier

#class_name_of, #to_class

Instance Method Details

#model_authorizerObject

Deprecated.


75
76
77
78
79
# File 'lib/wallaby/configuration/mapping.rb', line 75

def model_authorizer
  Deprecator.alert 'config.mapping.model_authorizer', from: '0.3.0', alternative: <<~INSTRUCTION
    Please use controller_class.application_authorizer.
  INSTRUCTION
end

#model_authorizer=(_model_authorizer) ⇒ Object

Deprecated.


64
65
66
67
68
69
70
71
72
# File 'lib/wallaby/configuration/mapping.rb', line 64

def model_authorizer=(_model_authorizer)
  Deprecator.alert 'config.mapping.model_authorizer=', from: '0.3.0', alternative: <<~INSTRUCTION
    Please set .application_authorizer= from the controller instead, for example:

      class Admin::ApplicationController < Wallaby::ResourcesController
        self.application_authorizer = ::GlobalModelAuthorizer
      end
  INSTRUCTION
end

#model_paginatorObject

Deprecated.


93
94
95
96
97
# File 'lib/wallaby/configuration/mapping.rb', line 93

def model_paginator
  Deprecator.alert 'config.mapping.model_paginator', from: '0.3.0', alternative: <<~INSTRUCTION
    Please use controller_class.application_paginator.
  INSTRUCTION
end

#model_paginator=(_model_paginator) ⇒ Object

Deprecated.


82
83
84
85
86
87
88
89
90
# File 'lib/wallaby/configuration/mapping.rb', line 82

def model_paginator=(_model_paginator)
  Deprecator.alert 'config.mapping.model_paginator=', from: '0.3.0', alternative: <<~INSTRUCTION
    Please set .application_paginator= from the controller instead, for example:

      class Admin::ApplicationController < Wallaby::ResourcesController
        self.application_paginator = ::GlobalModelPaginator
      end
  INSTRUCTION
end

#model_servicerObject

Deprecated.


57
58
59
60
61
# File 'lib/wallaby/configuration/mapping.rb', line 57

def model_servicer
  Deprecator.alert 'config.mapping.model_servicer', from: '0.3.0', alternative: <<~INSTRUCTION
    Please use controller_class.application_servicer.
  INSTRUCTION
end

#model_servicer=(_model_servicer) ⇒ Object

Deprecated.


46
47
48
49
50
51
52
53
54
# File 'lib/wallaby/configuration/mapping.rb', line 46

def model_servicer=(_model_servicer)
  Deprecator.alert 'config.mapping.model_servicer=', from: '0.3.0', alternative: <<~INSTRUCTION
    Please set .application_servicer= from the controller instead, for example:

      class Admin::ApplicationController < Wallaby::ResourcesController
        self.application_servicer = ::GlobalModelServicer
      end
  INSTRUCTION
end

#resource_decoratorObject

Deprecated.


39
40
41
42
43
# File 'lib/wallaby/configuration/mapping.rb', line 39

def resource_decorator
  Deprecator.alert 'config.mapping.resource_decorator', from: '0.3.0', alternative: <<~INSTRUCTION
    Please use controller_class.application_decorator.
  INSTRUCTION
end

#resource_decorator=(_resource_decorator) ⇒ Object

Deprecated.


28
29
30
31
32
33
34
35
36
# File 'lib/wallaby/configuration/mapping.rb', line 28

def resource_decorator=(_resource_decorator)
  Deprecator.alert 'config.mapping.resource_decorator=', from: '0.3.0', alternative: <<~INSTRUCTION
    Please set .application_decorator= from the controller instead, for example:

      class Admin::ApplicationController < Wallaby::ResourcesController
        self.application_decorator = ::GlobalModelDecorator
      end
  INSTRUCTION
end

#resources_controllerObject

Deprecated.


21
22
23
24
25
# File 'lib/wallaby/configuration/mapping.rb', line 21

def resources_controller
  Deprecator.alert 'config.mapping.resources_controller', from: '0.3.0', alternative: <<~INSTRUCTION
    Please use config.resources_controller instead.
  INSTRUCTION
end

#resources_controller=(_resources_controller) ⇒ Object

Deprecated.


10
11
12
13
14
15
16
17
18
# File 'lib/wallaby/configuration/mapping.rb', line 10

def resources_controller=(_resources_controller)
  Deprecator.alert 'config.mapping.resources_controller=', from: '0.3.0', alternative: <<~INSTRUCTION
    Please set #resources_controller= from the config instead, for example:

      Wallaby.config do |config|
        config.resources_controller = ::GlobalResourcesController
      end
  INSTRUCTION
end