Module: Pagy::Backend
- Includes:
- ArelExtra, ArrayExtra, CountlessExtra, ElasticsearchRailsExtra::Backend, HeadersExtra, ItemsExtra::Backend, MeilisearchExtra::Backend, MetadataExtra, SearchkickExtra::Backend, StandaloneExtra
- Defined in:
- lib/pagy/backend.rb,
lib/pagy/extras/standalone.rb
Overview
Define a dummy params method if it’s not already defined in the including module
Class Method Summary collapse
Methods included from UrlHelpers
#pagy_massage_params, #pagy_url_for
Methods included from StandaloneExtra
Class Method Details
.included(controller) ⇒ Object
56 57 58 |
# File 'lib/pagy/extras/standalone.rb', line 56 def self.included(controller) controller.define_method(:params) { {} } unless controller.method_defined?(:params) end |