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