Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add extra_attributes option that adds extra attributes to links.

This is a generalization of of issue #133.  Not all ajax frameworks
work the same was as rails ujs.
  • Loading branch information...
commit f36aaa4aff0f3a67db5ab8a496ade9ab07370652 1 parent 71f793e
@bryanlarsen authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/will_paginate/view_helpers/link_renderer.rb
View
1  lib/will_paginate/view_helpers/link_renderer.rb
@@ -93,6 +93,7 @@ def link(text, target, attributes = {})
target = url(target)
end
attributes[:href] = target
+ attributes = @options[:extra_attributes].merge(attributes) if @options[:extra_attributes]
tag(:a, text, attributes)
end

1 comment on commit f36aaa4

@acesuares

Was this ever merged?

Please sign in to comment.
Something went wrong with that request. Please try again.