Sha256: 0417d90e1cd49d7d65d01ec20bf5eefe4173d2c0859c06420ba65d5989e00399
Contents?: true
Size: 680 Bytes
Versions: 6
Compression:
Stored size: 680 Bytes
Contents
require 'will_paginate/view_helpers/action_view' module Commontator class LinkRenderer < WillPaginate::ActionView::LinkRenderer protected 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) routes_proxy = @options[:routes_proxy] || @template routes_proxy.url_for(url_params) end private def link(text, target, attributes = {}) attributes = attributes.merge('data-remote' => true) \ if @options[:remote] super end end end
Version data entries
6 entries across 6 versions & 1 rubygems