From 8566b28593414771b7fce5465ba90cb3dffe56da Mon Sep 17 00:00:00 2001 From: Ace Suares Date: Tue, 18 Jun 2024 16:15:19 -0400 Subject: [PATCH] Update link_renderer.rb again --- lib/will_paginate/view_helpers/link_renderer.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/will_paginate/view_helpers/link_renderer.rb b/lib/will_paginate/view_helpers/link_renderer.rb index 7fc21f13..ef538cdc 100644 --- a/lib/will_paginate/view_helpers/link_renderer.rb +++ b/lib/will_paginate/view_helpers/link_renderer.rb @@ -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