Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: mislav/will_paginate
base: master
...
head fork: cclausen/will_paginate
compare: master
Checking mergeability… Don’t worry, you can still create the pull request.
  • 3 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/will_paginate/view_helpers/link_renderer.rb
View
3  lib/will_paginate/view_helpers/link_renderer.rb
@@ -88,6 +88,7 @@ def param_name
end
def link(text, target, attributes = {})
+ attributes["data-remote"] = true
if target.is_a? Fixnum
attributes[:rel] = rel_value(target)
target = url(target)
@@ -95,7 +96,7 @@ def link(text, target, attributes = {})
attributes[:href] = target
tag(:a, text, attributes)
end
-
+
def tag(name, value, attributes = {})
string_attributes = attributes.inject('') do |attrs, pair|
unless pair.last.nil?

No commit comments for this range

Something went wrong with that request. Please try again.