Sha256: 2fba2e1fdea5d8fd1811f273e16bf1090c657812eb07362e9bdeecd579152398

Contents?: true

Size: 296 Bytes

Versions: 5

Compression:

Stored size: 296 Bytes

Contents

require 'will_paginate/view_helpers/action_view'

module Commontator
  class RemoteLinkRenderer < WillPaginate::ActionView::LinkRenderer
    def link(text, target, attributes = {})
      attributes = attributes.merge('data-remote' => true)
      super(text, target, attributes)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
commontator-4.5.4 lib/commontator/remote_link_renderer.rb
commontator-4.5.3 lib/commontator/remote_link_renderer.rb
commontator-4.5.2 lib/commontator/remote_link_renderer.rb
commontator-4.5.1 lib/commontator/remote_link_renderer.rb
commontator-4.5.0 lib/commontator/remote_link_renderer.rb