Module: BetterController::Pagination::ClassMethods

Defined in:
lib/better_controller/pagination.rb

Overview

Module providing class methods for pagination

Instance Method Summary collapse

Instance Method Details

#configure_pagination(options = {}) ⇒ Object

Configure pagination defaults

Parameters:

  • options (Hash) (defaults to: {})

    Pagination options



36
37
38
39
40
41
# File 'lib/better_controller/pagination.rb', line 36

def configure_pagination(options = {})
  class_attribute :pagination_options, default: {
    enabled:  true,
    per_page: 25,
  }.merge(options)
end