Class: Rango::Pagination::Strategy

Inherits:
Object
  • Object
show all
Defined in:
lib/rango/contrib/pagination/strategies.rb

Class Method Summary collapse

Class Method Details

.activateObject

Since:

  • 0.0.2



8
9
10
11
12
13
# File 'lib/rango/contrib/pagination/strategies.rb', line 8

def self.activate
  Page.register_route_hook(self.new.method(:hook))
  #Page.register_route_hook do |request, page|
  #  self.new.hook(request, page)
  #end
end