Created
May 14, 2010 18:49
-
-
Save marugoshi/401488 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Ext | |
module WillPaginate | |
class RemoteLinkRenderer < ::WillPaginate::LinkRenderer | |
def page_link(page, text, attributes = {}) | |
@template.link_to_remote text, remote_url_for(page), attributes | |
end | |
protected | |
def remote_url_for(page) | |
{ :url => url_for(page), :update => @options[:update], :method => @options[:method] } | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment