lib/pagy/extras/searchkick.rb in pagy-6.3.0 vs lib/pagy/extras/searchkick.rb in pagy-6.4.0

- old
+ new

@@ -54,10 +54,10 @@ # Sub-method called only by #pagy_searchkick: here for easy customization of variables by overriding # the _collection argument is not available when the method is called def pagy_searchkick_get_vars(_collection, vars) pagy_set_items_from_params(vars) if defined?(ItemsExtra) vars[:items] ||= DEFAULT[:items] - vars[:page] ||= (params[vars[:page_param] || DEFAULT[:page_param]] || 1).to_i + vars[:page] ||= pagy_get_page(vars) vars end end end Searchkick = SearchkickExtra::Searchkick