Module: Pagy::Backend

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

#pagy_set_query_params

Methods included from StandaloneExtra

#pagy_url_for

Methods included from CalendarExtra::UrlHelperAddOn

#pagy_calendar_url_at

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