Skip to content

Support Rails 8.0 and 8.1 - #2485

Merged
tf merged 8 commits into
codevise:masterfrom
tf:rails-update
Sep 11, 2026
Merged

tf merged 8 commits into
codevise:masterfrom
tf:rails-update

Conversation

@tf

@tf tf commented Sep 9, 2026

Copy link
Copy Markdown
Member

No description provided.

tf added 7 commits September 9, 2026 07:13
Active Support freezes the options it passes to as_json since Rails 8,
so extending the caller's hash raised FrozenError when Active Admin
rendered JSON downloads.
Rails 8 dropped support for passing the result of caller to
ActiveSupport::Deprecation#warn. Pageflow::Deprecation.warn already
falls back to caller_locations of the very same frame.
Rails 8.1 raises on increment! for new records. Revision components can
be saved while their entry still is, since the before_save callback that
assigns the perma id is registered ahead of the belongs_to autosave.
Rails 8 only loads routes on demand while eager loading is off, so the
Active Admin controller constants that controller specs name were
missing as soon as the spec files were loaded.
Rails 8 exits when asked for a generator that does not exist, which
aborted dummy app generation for engines like pageflow_paged.
Earlier versions restrict Active Job to < 8.
Move the supported range to >= 7.2, < 8.2 and derive the gemspec
requirement from it. Outside that range PAGEFLOW_RAILS_VERSION now drops
the rails constraint entirely, so both older and newer versions can
still be tried out. CI covers both ends of the range.
@tf tf added this to the v17.2 milestone Sep 9, 2026
Pageflow does not use Active Storage. Rails 8.1 raises while
loading it when the ruby-vips gem is present but libvips is older
than 8.13, since it cannot disable libvips' unfuzzed operations in
that case. Pageflow depends on ruby-vips for its own webp
processor, so dummy app generation aborted on CI test images
shipping an older libvips.
@tf
tf merged commit dbf4b6e into codevise:master Sep 11, 2026
16 checks passed
@tf
tf deleted the rails-update branch September 11, 2026 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant