Skip to content

Commit dd731cd

Browse files
authored
Merge pull request #48 from performant-software/feature/cdc301_related_record_pagination
CDC #301 - Related Record Pagination
2 parents ed37ab6 + e8a798e commit dd731cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/initializers/pagy.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@
8686

8787
# Overflow extra: Allow for easy handling of overflowing pages
8888
# See https://ddnexus.github.io/pagy/extras/overflow
89-
# require 'pagy/extras/overflow'
90-
# Pagy::VARS[:overflow] = :empty_page # default (other options: :last_page and :exception)
89+
require 'pagy/extras/overflow'
90+
Pagy::DEFAULT[:overflow] = :last_page # default (other options: :last_page and :exception)
9191

9292
# Metadata extra: Provides the pagination metadata to Javascript frameworks like Vue.js, react.js, etc.
9393
# See https://ddnexus.github.io/pagy/extras/metadata

0 commit comments

Comments
 (0)