From 8baab9f7cb5d661aa0216144cafb44dcb939f8b9 Mon Sep 17 00:00:00 2001 From: Kyle Adams Date: Sat, 25 May 2024 15:20:24 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=BD=EF=B8=8F=20Update=20to=20new=20tag?= =?UTF-8?q?=20helper=20syntax?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/initializers/will_paginate.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/initializers/will_paginate.rb b/config/initializers/will_paginate.rb index 44b278c..b138f94 100644 --- a/config/initializers/will_paginate.rb +++ b/config/initializers/will_paginate.rb @@ -19,19 +19,19 @@ class SpectreLinkRenderer < LinkRenderer protected def html_container(html) - tag :nav, tag(:ul, html, class: ul_class) + tag.nav tag.ul(html, class: ul_class) end def page_number(page) - tag :li, link(page, page, rel: rel_value(page)), class: ["page-item", ("active" if page == current_page)].compact.join(" ") + tag.li link(page, page, rel: rel_value(page)), class: ["page-item", ("active" if page == current_page)].compact.join(" ") end def gap - tag :li, tag(:span, "…".html_safe), class: "page-item" + tag.li tag.span("…".html_safe), class: "page-item" end def previous_or_next_page(page, text, classname) - tag :li, link(text, page || "#"), class: ["page-item", ("disabled" unless page)].compact.join(" ") + tag.li link(text, page || "#"), class: ["page-item", ("disabled" unless page)].compact.join(" ") end def ul_class