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

Require AttributeAccessorsPerThread #508

Merged
merged 2 commits into from
Nov 23, 2023
Merged

Require AttributeAccessorsPerThread #508

merged 2 commits into from
Nov 23, 2023

Conversation

sevos
Copy link
Contributor

@sevos sevos commented Nov 4, 2023

Fixes library loading error in edge Rails.

Repository reproducing the problem: https://github.com/sevos/example_rails_turbo_morph

I've tested the library with Rails 7.2 (main branch), and the library failed to load with the undefined method thread_mattr_accessor on Turbo:Module error. Locally, I fixed it by requiring the appropriate file from ActiveSupport before loading Gemfile in application.rb. This PR should fix this.

Fixes library loading error in edge Rails
lib/turbo-rails.rb Outdated Show resolved Hide resolved
@afcapel afcapel merged commit c97b501 into hotwired:page-refreshes Nov 23, 2023
11 checks passed
@afcapel
Copy link
Contributor

afcapel commented Nov 23, 2023

Thanks @sevos!

@sevos sevos deleted the patch-1 branch November 24, 2023 09:12
@sevos
Copy link
Contributor Author

sevos commented Nov 24, 2023

@afcapel Are we sure this got merged? page-refreshes branch got merged to main before you merged this.

@afcapel
Copy link
Contributor

afcapel commented Nov 24, 2023

Oh, sorry, I didn't notice the PR was not against main. #523 is merged now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants