Class: Pagy::SearchBase

Inherits:
Offset
  • Object
show all
Defined in:
lib/pagy/classes/offset/search.rb

Overview

Search classes do not use OFFSET for querying a DB; however, they use the same positional technique used by Offset.

Constant Summary

Constants inherited from Offset

Offset::DEFAULT

Instance Attribute Summary

Attributes inherited from Offset

#count, #from, #in, #last, #next, #offset, #previous, #to

Instance Method Summary collapse

Methods inherited from Offset

#initialize, #records

Methods included from NumericHelpers

#info_tag, #input_nav_js, #limit_tag_js, #previous_tag, #series_nav, #series_nav_js

Methods included from Rangeable

#in_range?

Methods included from Deprecated::Offset

#assign_last

Constructor Details

This class inherits a constructor from Pagy::Offset

Instance Method Details

#search?Boolean

Returns:

  • (Boolean)


20
# File 'lib/pagy/classes/offset/search.rb', line 20

def search? = true