Module: Pagy::Backend

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

#pagy_url_for

Class Method Details

.included(controller) ⇒ Object



53
54
55
# File 'lib/pagy/extras/standalone.rb', line 53

def self.included(controller)
  controller.define_method(:params) { {} } unless controller.method_defined?(:params)
end