Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* Added an option :ajax => true, that will add the data-remote attri…

…bute

   to the page links
  • Loading branch information...
commit 0574d2675155705c5daed741c6fa6475cf980445 1 parent b1a5bee
Ace Suares authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/will_paginate/view_helpers/link_renderer.rb
View
3  lib/will_paginate/view_helpers/link_renderer.rb
@@ -92,6 +92,9 @@ def link(text, target, attributes = {})
target = url(target)
end
attributes[:href] = target
+ if @options[:ajax]
+ attributes["data-remote"] = true
+ end
tag(:a, text, attributes)
end
Please sign in to comment.
Something went wrong with that request. Please try again.