Skip to content

Commit

Permalink
Update link_renderer.rb again
Browse files Browse the repository at this point in the history
  • Loading branch information
acesuares authored Jun 18, 2024
1 parent 50017c3 commit 8566b28
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/will_paginate/view_helpers/link_renderer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ def link(text, target, attributes = {})
target = url(target)
end
attributes[:href] = target
if @options[:remote]
attributes["data-remote"] = true
end
tag(:a, text, attributes)
end

Expand Down

0 comments on commit 8566b28

Please sign in to comment.