From e8a798e8eebae5eab9269c16e0abe64b2220d190 Mon Sep 17 00:00:00 2001 From: dleadbetter Date: Wed, 25 Sep 2024 14:35:51 -0400 Subject: [PATCH] CDC #301 - Adding "overflow" attribute to pagy installer to prevent errors on page overflow --- config/initializers/pagy.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/initializers/pagy.rb b/config/initializers/pagy.rb index 63e3b42..7fff9de 100644 --- a/config/initializers/pagy.rb +++ b/config/initializers/pagy.rb @@ -86,8 +86,8 @@ # Overflow extra: Allow for easy handling of overflowing pages # See https://ddnexus.github.io/pagy/extras/overflow -# require 'pagy/extras/overflow' -# Pagy::VARS[:overflow] = :empty_page # default (other options: :last_page and :exception) +require 'pagy/extras/overflow' +Pagy::DEFAULT[:overflow] = :last_page # default (other options: :last_page and :exception) # Metadata extra: Provides the pagination metadata to Javascript frameworks like Vue.js, react.js, etc. # See https://ddnexus.github.io/pagy/extras/metadata