Skip to content

Use Pagy’s new options API#144

Merged
davidcelis merged 1 commit intodavidcelis:mainfrom
fmang:pagy_options
Apr 1, 2026
Merged

Use Pagy’s new options API#144
davidcelis merged 1 commit intodavidcelis:mainfrom
fmang:pagy_options

Conversation

@fmang
Copy link
Copy Markdown
Contributor

@fmang fmang commented Mar 24, 2026

Pagy.options has been deprecated in version 43.3.0. See ddnexus/pagy@88d52de#diff-05ff71ebdb99c42d63eefbef934c5197fc72f8f03b8dbbe363ca53e5615f0429R26

The current state causes the following warning:

[PAGY] 'Pagy.options' is deprecated: use 'Pagy::OPTIONS directly'

The new Pagy::OPTIONS has actually been introduced in version 43.2.10 but only announced in version 43.3.0. We need to bump the minimal supported version because 43.0 does not support it. ddnexus/pagy@4a70be0

Since version compatibility is checked through the gem specification, I suggest we remove it from the README. Specifying pagy without version already installs the latest one, and explicit version constraints in users’ Gemfile get outdated and become a hassle then.

Pagy.options has been deprecated in version 43.3.0.
ddnexus/pagy@88d52de#diff-05ff71ebdb99c42d63eefbef934c5197fc72f8f03b8dbbe363ca53e5615f0429R26

The current state causes the following warning:

    [PAGY] 'Pagy.options' is deprecated: use 'Pagy::OPTIONS directly'

The new Pagy::OPTIONS has actually been introduced in version 43.2.10
but only announced in version 43.3.0. We need to bump the minimal
supported version because 43.0 does not support it.
ddnexus/pagy@4a70be0

Since version compatibility is checked through the gem specification, I
suggest we remove it from the README. Specifying pagy without version
already installs the latest one, and explicit version constraints in
users’ Gemfile get outdated and become a hassle then.
@davidcelis
Copy link
Copy Markdown
Owner

@fmang Thank you!

@davidcelis davidcelis merged commit 7563a8d into davidcelis:main Apr 1, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants