Module: ApplicationPaginationConcern

Extended by:
ActiveSupport::Concern
Included in:
ApplicationController
Defined in:
app/controllers/concerns/application_pagination_concern.rb

Instance Method Summary collapse

Instance Method Details

#page_paramInteger? (protected)

Retrieves the page number from the GET URL.


11
12
13
# File 'app/controllers/concerns/application_pagination_concern.rb', line 11

def page_param
  params.permit(:page)[:page]
end