Module: BetterController::Pagination::ClassMethods
- Defined in:
- lib/better_controller/pagination.rb
Overview
Module providing class methods for pagination
Instance Method Summary collapse
-
#configure_pagination(options = {}) ⇒ Object
Configure pagination defaults.
Instance Method Details
#configure_pagination(options = {}) ⇒ Object
Configure pagination defaults
36 37 38 39 40 41 |
# File 'lib/better_controller/pagination.rb', line 36 def configure_pagination( = {}) class_attribute :pagination_options, default: { enabled: true, per_page: 25, }.merge() end |