Module: Pagy::Backend
- Includes:
- ArelExtra, ArrayExtra, CalendarExtra::BackendAddOn, CalendarExtra::UrlHelperAddOn, CountlessExtra, HeadersExtra, ItemsExtra::BackendAddOn, JsonApiExtra::BackendOverride, MeilisearchExtra::BackendAddOn, MetadataExtra, SearchkickExtra::BackendAddOn
- 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
Constant Summary
Constants included from CalendarExtra::BackendAddOn
CalendarExtra::BackendAddOn::CONF_KEYS
Class Method Summary collapse
Methods included from UrlHelpers
#pagy_set_query_params, #pagy_url_for
Methods included from JsonApiExtra::UrlHelperOverride
Methods included from StandaloneExtra
Methods included from CalendarExtra::UrlHelperAddOn
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 |