Sha256: 25f3e015add2689874f78c2caf00cd571765ab6bfdffb65e5e24f8189f70d45d
Contents?: true
Size: 597 Bytes
Versions: 17
Compression:
Stored size: 597 Bytes
Contents
require "will_paginate/view_helpers/action_view" module WillPaginate module ActionView class LinkRenderer < ViewHelpers::LinkRenderer def url(page) @base_url_params ||= begin url_params = merge_get_params(default_url_params) merge_optional_params(url_params) end url_params = @base_url_params.dup add_current_page_param(url_params, page) if /refinery/ === url_params[:controller] @template.refinery.url_for(url_params) else @template.url_for(url_params) end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems