Sha256: 816ebe534ccf3aab2d63142272c810d6bd3b28b9f54ee4c35058dd7c41e3938c
Contents?: true
Size: 668 Bytes
Versions: 1
Compression:
Stored size: 668 Bytes
Contents
# encoding: utf-8 require "pathname" # TODO: it should be done in dm-aggregates # TODO 2: don't use this crappy shit at all! #Rango.dependency("dm-aggregates") Rango.import("contrib/pagination/page") Rango.import("contrib/pagination/strategies") Rango.import("contrib/pagination/helpers") Rango.import("contrib/pagination/adapters/#{Project.settings.orm || "datamapper"}") Rango.import("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.0.4 | lib/rango/contrib/pagination.rb |