module Pagy::SearchkickExtra::Searchkick

def pagy_searchkick(term = '*', **options, &block)

It also pushes to the same array an optional method call.
after the pagination variables are merged to the options.
Return an array used to delay the call of #search
:nodoc:
def pagy_searchkick(term = '*', **options, &block)
  [self, term, options, block].tap do |args|
    args.define_singleton_method(:method_missing) { |*a| args += a }
  end
end