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