Class: Rango::Pagination::Strategies::PageNumberOnTheEndOfRoute

Inherits:
Rango::Pagination::Strategy show all
Defined in:
lib/rango/contrib/pagination/strategies.rb

Instance Method Summary collapse

Methods inherited from Rango::Pagination::Strategy

activate

Instance Method Details

#hook(request, from, page) ⇒ Object

Since:

  • 0.0.2



26
27
28
29
# File 'lib/rango/contrib/pagination/strategies.rb', line 26

def hook(request, from, page)
  # /products/1
  return File.join(File.split(request.url)[0..-2].push(page.to_s))
end