Class: Wallaby::Configuration::Mapping Deprecated
- Inherits:
-
Object
- Object
- Wallaby::Configuration::Mapping
- Includes:
- Wallaby::Classifier
- Defined in:
- lib/wallaby/configuration/mapping.rb
Overview
Deprecated.
Instance Method Summary collapse
- #model_authorizer ⇒ Object deprecated Deprecated.
- #model_authorizer=(_model_authorizer) ⇒ Object deprecated Deprecated.
- #model_paginator ⇒ Object deprecated Deprecated.
- #model_paginator=(_model_paginator) ⇒ Object deprecated Deprecated.
- #model_servicer ⇒ Object deprecated Deprecated.
- #model_servicer=(_model_servicer) ⇒ Object deprecated Deprecated.
- #resource_decorator ⇒ Object deprecated Deprecated.
- #resource_decorator=(_resource_decorator) ⇒ Object deprecated Deprecated.
- #resources_controller ⇒ Object deprecated Deprecated.
- #resources_controller=(_resources_controller) ⇒ Object deprecated Deprecated.
Methods included from Wallaby::Classifier
Instance Method Details
#model_authorizer ⇒ Object
Deprecated.
75 76 77 78 79 |
# File 'lib/wallaby/configuration/mapping.rb', line 75 def 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 () 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_paginator ⇒ Object
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_servicer ⇒ Object
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_decorator ⇒ Object
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_controller ⇒ Object
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 |