Module: Pagy::Backend
- Includes:
- ArelExtra, ArrayExtra, CalendarExtra::Backend, 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
Constant Summary
Constants included from CalendarExtra::Backend
CalendarExtra::Backend::CONF_KEYS
Class Method Summary collapse
Methods included from UrlHelpers
Methods included from StandaloneExtra
Class Method Details
.included(controller) ⇒ Object
62 63 64 |
# File 'lib/pagy/extras/standalone.rb', line 62 def self.included(controller) controller.define_method(:params) { {} } unless controller.method_defined?(:params) end |