<NME> pagination.rb
<BEF> # encoding: utf-8

# http://wiki.github.com/botanicus/rango/pagination
# Don't forget to load your ORM adapter!
require "rango/contrib/pagination/page"
require "rango/contrib/pagination/strategies"
require "rango/contrib/pagination/helpers"
require "rango/contrib/pagination/adapters/#{Project.settings.orm || "datamapper"}"

require "rango/controller" # TODO: it should not works just with controller
Rango::Helpers.send(:include, Rango::Pagination::PaginationMixin)
# require code that must be loaded before the application

# /products?page=5
Rango::Pagination::Strategies::Default.activate

<MSG> Do not require controller when it isn't necessary

<DFF> @@ -7,7 +7,6 @@ require "rango/contrib/pagination/strategies"
 require "rango/contrib/pagination/helpers"
 require "rango/contrib/pagination/adapters/#{Project.settings.orm || "datamapper"}"
 
-require "rango/controller" # TODO: it should not works just with controller
 Rango::Helpers.send(:include, Rango::Pagination::PaginationMixin)
 # require code that must be loaded before the application
 

Do not require controller when it isn't necessary