Module: Wor::Paginate::Config
- Defined in:
- lib/wor/paginate/config.rb
Constant Summary collapse
- DEFAULTS_CONFIGS =
{ default_per_page: 25, default_page: 1, page_param: :page, per_page_param: :limit, formatter: Wor::Paginate::Formatter, max_limit: 50, default_adapter: nil }.freeze
Class Method Summary collapse
-
.reset! ⇒ Object
This is mostly useful for the tests.
Class Method Details
.reset! ⇒ Object
This is mostly useful for the tests
27 28 29 |
# File 'lib/wor/paginate/config.rb', line 27 def reset! DEFAULTS_CONFIGS.each { |k, v| send("#{k}=", v) } end |