Skip to content

Commit

Permalink
CDC #301 - Adding "overflow" attribute to pagy installer to prevent e…
Browse files Browse the repository at this point in the history
…rrors on page overflow
  • Loading branch information
dleadbetter committed Sep 25, 2024
1 parent ed37ab6 commit e8a798e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/initializers/pagy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e8a798e

Please sign in to comment.