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

Version Path
refinerycms-core-4.0.3 config/initializers/will_paginate_monkeypatch.rb
refinerycms-core-4.0.2 config/initializers/will_paginate_monkeypatch.rb
refinerycms-core-4.0.1 config/initializers/will_paginate_monkeypatch.rb
refinerycms-core-3.0.6 config/initializers/will_paginate_monkeypatch.rb
refinerycms-core-4.0.0 config/initializers/will_paginate_monkeypatch.rb
refinerycms-core-3.0.5 config/initializers/will_paginate_monkeypatch.rb
refinerycms-core-3.0.4 config/initializers/will_paginate_monkeypatch.rb
refinerycms-core-3.0.3 config/initializers/will_paginate_monkeypatch.rb
refinerycms-core-3.0.2 config/initializers/will_paginate_monkeypatch.rb
refinerycms-core-3.0.1 config/initializers/will_paginate_monkeypatch.rb
refinerycms-core-3.0.0 config/initializers/will_paginate_monkeypatch.rb
refinerycms-core-2.1.5 config/initializers/will_paginate_monkeypatch.rb
refinerycms-core-2.1.4 config/initializers/will_paginate_monkeypatch.rb
refinerycms-core-2.1.3 config/initializers/will_paginate_monkeypatch.rb
refinerycms-core-2.1.2 config/initializers/will_paginate_monkeypatch.rb
refinerycms-core-2.1.1 config/initializers/will_paginate_monkeypatch.rb
refinerycms-core-2.1.0 config/initializers/will_paginate_monkeypatch.rb