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...
bryanlarsen committed Mar 2, 2012
1 parent 71f793e commit f36aaa4aff0f3a67db5ab8a496ade9ab07370652
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/will_paginate/view_helpers/link_renderer.rb
@@ -93,6 +93,7 @@ def link(text, target, attributes = {})
target = url(target)
attributes[:href] = target
+ attributes = @options[:extra_attributes].merge(attributes) if @options[:extra_attributes]
tag(:a, text, attributes)

1 comment on commit f36aaa4

This comment has been minimized.

Show comment Hide comment

acesuares May 28, 2012

Was this ever merged?

Was this ever merged?

Please sign in to comment.