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

Support Rails 6 and 7 on Ruby 3 #615

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

leandro
Copy link

@leandro leandro commented Jul 1, 2024

This fixes issue #614.

leandro added 7 commits July 1, 2024 13:43
The `ActiveRecord::Persistence#update_attributes` method got removed
after Rails 5. So in order to make the pieces of code that use it on
Rails 6 and 7, those calls needed to be replaced by their correspondent
method, `ActiveRecord::Persistence#update`.
It turns out that the middlewares that are being deleted there don't
exist already on Rails 7, so it'd raise an error when trying to delete
them on Rails 7.
It's necessary in order to make JS assets to be loaded properly in
the Capybara related tests.
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.

1 participant