Skip to content

Commit 2b52026

Browse files
committed
fix: replace deprecated Pagy.options with Pagy::OPTIONS
1 parent cbf3d60 commit 2b52026

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)