Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Rails 7.2 support #127

Merged
merged 2 commits into from
Aug 19, 2024
Merged

Add Rails 7.2 support #127

merged 2 commits into from
Aug 19, 2024

Conversation

janko
Copy link
Contributor

@janko janko commented Aug 19, 2024

This avoids calling ActiveRecord::Base.clear_active_connections!, which has been removed in Rails 7.2. AFAICT this has always been a delegator to the connection handler, so this should be compatible with older Active Record versions as well.

I needed to update some gems to make things work, as well as add Propshaft after #123, since specs wouldn't run without an asset pipeline.

Closes #126

Otherwise Crono doesn't have an asset pipeline, so the engine initializer
raises an error.
Active Record 7.2 removed the deprecated
`ActiveRecord::Base.clear_active_connections!` delegate method.
@plashchynski plashchynski merged commit 2e663c2 into plashchynski:main Aug 19, 2024
0 of 4 checks passed
@janko janko deleted the rails-7.2 branch August 27, 2024 09:38
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.

Rails 7.2 support
2 participants