lib/pagy/extras/searchkick.rb in pagy-5.1.3 vs lib/pagy/extras/searchkick.rb in pagy-5.2.0
- old
+ new
@@ -1,12 +1,13 @@
# See the Pagy documentation: https://ddnexus.github.io/pagy/extras/searchkick
# frozen_string_literal: true
-class Pagy
+class Pagy # :nodoc:
DEFAULT[:searchkick_search_method] ||= :pagy_search
+ # Paginate Searchkick::Results objects
module SearchkickExtra
- module Searchkick
+ module Searchkick # :nodoc:
# Return an array used to delay the call of #search
# after the pagination variables are merged to the options.
# It also pushes to the same array an optional method call.
def pagy_searchkick(term = '*', **options, &block)
[self, term, options, block].tap do |args|