Skip to content

Commit 8b4c101

Browse files
authored
Merge pull request #2557 from mroderick/fix/pagy-deprecation
fix: replace deprecated Pagy.options with Pagy::OPTIONS
2 parents cbf3d60 + 2b52026 commit 8b4c101

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config/initializers/pagy.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# frozen_string_literal: true
22

33
# Pagy options
4-
Pagy.options[:size] = [1, 3, 3, 1]
5-
Pagy.options[:overflow] = :empty_page
4+
Pagy::OPTIONS[:size] = [1, 3, 3, 1]
5+
Pagy::OPTIONS[:overflow] = :empty_page
66

77
# Freeze options so they don't get changed accidentally
8-
Pagy.options.freeze
8+
Pagy::OPTIONS.freeze

0 commit comments

Comments
 (0)