RoutingFilter::Pagination

Constants

PAGINATION_SEGMENT

Public Instance Methods

around_recognize(path, env, &block) click to toggle source
# File lib/routing_filter/filters/pagination.rb, line 27
def around_recognize(path, env, &block)
  page = extract_segment!(PAGINATION_SEGMENT, path)
  yield.tap do |params|
    params[:page] = page.to_i if page
  end

[Validate]

Generated with the Darkfish Rdoc Generator 2.