Module: Toqua::Pagination

Extended by:
ActiveSupport::Concern
Includes:
Scoping
Defined in:
lib/toqua/pagination.rb

Constant Summary collapse

DEFAULT_PAGE =
1
DEFAULT_PAGE_KEY =
:page
DEFAULT_PER_PAGE =
30
DEFAULT_PER_PAGE_KEY =
:per_page

Instance Method Summary collapse

Methods included from Scoping

#__run_scope, #apply_scopes

Instance Method Details

#paginated?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/toqua/pagination.rb', line 15

def paginated?
  @paginated
end