From 85f02881e0b140cfd02a183fd82a3dba09cd5877 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:09:19 +0000 Subject: [PATCH] feat: Updated app/helpers/pagination_helper.rb --- app/helpers/pagination_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/pagination_helper.rb b/app/helpers/pagination_helper.rb index b8f596d..33a8bdb 100644 --- a/app/helpers/pagination_helper.rb +++ b/app/helpers/pagination_helper.rb @@ -9,7 +9,7 @@ def custom_paginate_renderer(collection, options = {}) def link_to_previous_page(collection, options) unless collection.first_page? - link_to "Previous", url_for(page: collection.prev_page), class: options[:previous_class] || "prev-page" + link_to 'Previous', url_for(page: collection.prev_page), class: options[:previous_class] || "prev-page" end end @@ -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