From 3803211ad7c9ff614af61b30ae527930e207f87d Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Sat, 3 Feb 2024 19:11:25 +0000 Subject: [PATCH] feat: Updated app/helpers/pagination_helper.rb --- app/helpers/pagination_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/pagination_helper.rb b/app/helpers/pagination_helper.rb index 0209f68..ef55a39 100644 --- a/app/helpers/pagination_helper.rb +++ b/app/helpers/pagination_helper.rb @@ -24,7 +24,7 @@ def page_numbers(collection, options) end_page = [collection.current_page + options[:page_range], collection.total_pages].min (start_page..end_page).map do |page| - link_to page, url_for(page: page), class: (((page == collection.current_page ? options[:active_class] : options[:page_class]))) + link_to page, url_for(page: page), class: ((((page == collection.current_page ? options[:active_class] : options[:page_class])))) end.join.html_safe end end