module Pagy::Searchkick
Public Instance Methods
pagy_searchkick(term = '*', **options, &block)
click to toggle source
returns 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 eventually called method
# File lib/pagy/extras/searchkick.rb, line 12 def pagy_searchkick(term = '*', **options, &block) [self, term, options, block].tap do |args| args.define_singleton_method(:method_missing){|*a| args += a} end end