Sha256: 7a24a77db1b0d6e964550c069135477435909755af676a3e6b15d3c82254d4cf

Contents?: true

Size: 596 Bytes

Versions: 9

Compression:

Stored size: 596 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 url_params[:controller] =~ /refinery/
          @template.refinery.url_for(url_params)
        else
          @template.url_for(url_params)
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
refinerycms-core-2.0.10 config/initializers/will_paginate_monkeypatch.rb
refinerycms-core-2.0.9 config/initializers/will_paginate_monkeypatch.rb
refinerycms-core-2.0.8 config/initializers/will_paginate_monkeypatch.rb
refinerycms-core-2.0.7 config/initializers/will_paginate_monkeypatch.rb
refinerycms-core-2.0.6 config/initializers/will_paginate_monkeypatch.rb
refinerycms-core-2.0.5 config/initializers/will_paginate_monkeypatch.rb
refinerycms-core-2.0.4 config/initializers/will_paginate_monkeypatch.rb
refinerycms-core-2.0.3 config/initializers/will_paginate_monkeypatch.rb
refinerycms-core-2.0.2 config/initializers/will_paginate_monkeypatch.rb