Sha256: 6d913335c965ed63d2746f12bacbc4d404b9bd9cd50524d1a5aca3c2d044795e
Contents?: true
Size: 447 Bytes
Versions: 6
Compression:
Stored size: 447 Bytes
Contents
module DataMapper::Pagination::Helpers::Rails ## # Renders the pagination links for the given _collection_. # # === Options # # :params Hash of params that is passed to url_for # :size Number of intermediate page number links to be shown; Defaults to 7 def paginate collection, options = {} uri = @template.url_for @template.params.merge(options[:params] || {}) collection.pager.to_html uri, options end end
Version data entries
6 entries across 6 versions & 1 rubygems