Sha256: affcfecc8e8ab73505d1f0c6fa1e13594b7d00b7726da2699bd7b93ba8f76334
Contents?: true
Size: 546 Bytes
Versions: 2
Compression:
Stored size: 546 Bytes
Contents
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 url_params[:controller] =~ /refinery/ @template.refinery.url_for(url_params) else @template.url_for(url_params) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
refinerycms-core-2.0.1 | config/initializers/will_paginate_monkeypatch.rb |
refinerycms-core-2.0.0 | config/initializers/will_paginate_monkeypatch.rb |