Sha256: 912e7bddac8f5838b801dabc4326d6d8723bb3e1146d386537affb0a5bbc6a0e

Contents?: true

Size: 550 Bytes

Versions: 1

Compression:

Stored size: 550 Bytes

Contents

# encoding: utf-8

require "dm-aggregates"

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::Controller.send(:include, Rango::Pagination::PaginationMixin)
# require code that must be loaded before the application

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rango-0.1.pre lib/rango/contrib/pagination.rb