Sha256: de99a80a19fdfefbb6894b359c2e820cbb59c70fc2c493c94c8b2bcbf7ad84c5
Contents?: true
Size: 433 Bytes
Versions: 4
Compression:
Stored size: 433 Bytes
Contents
# This is for will_paginate module Alchemy class RemotePaginationLinkRenderer < WillPaginate::LinkRenderer def prepare(collection, options, template) @remote = options.delete(:remote) || {} super end protected def page_link(page, text, attributes = {}) @template.link_to(text, url_for(page), {:remote => true, :method => :get}.merge(@remote).merge(attributes)) end end end
Version data entries
4 entries across 4 versions & 1 rubygems