lib/pagy/extras/searchkick.rb in pagy-5.10.1 vs lib/pagy/extras/searchkick.rb in pagy-6.0.0

- old
+ new

@@ -1,19 +1,11 @@ # See the Pagy documentation: https://ddnexus.github.io/pagy/extras/searchkick # frozen_string_literal: true class Pagy # :nodoc: DEFAULT[:searchkick_search] ||= :search - DEFAULT[:searchkick_pagy_search] ||= if DEFAULT[:searchkick_search_method] # remove in 6.0 - # :nocov: - Warning.warn '[PAGY WARNING] The :searchkick_search_method variable ' \ - 'has been deprecated and will be ignored from pagy 6. ' \ - 'Use :searchkick_pagy_search instead.' - DEFAULT[:searchkick_search_method] - # :nocov: - else - :pagy_search - end + DEFAULT[:searchkick_pagy_search] ||= :pagy_search + # Paginate Searchkick::Results objects module SearchkickExtra module Searchkick # :nodoc: # Return an array used to delay the call of #search # after the pagination variables are merged to the options.