Skip to content

Commit

Permalink
feat: Updated app/helpers/pagination_helper.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Feb 3, 2024
1 parent 3e2f97a commit 3803211
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/pagination_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3803211

Please sign in to comment.