Module: Pagy::Search

Defined in:
lib/pagy/classes/offset/search.rb

Defined Under Namespace

Classes: Arguments

Instance Method Summary collapse

Instance Method Details

#pagy_search(term = nil, **options, &block) ⇒ Object

Collect the search arguments to pass to the actual search



12
13
14
# File 'lib/pagy/classes/offset/search.rb', line 12

def pagy_search(term = nil, **options, &block)
  Arguments.new([self, term, options, block])
end