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

undefined method `thread_mattr_accessor' for Turbo:Module in v2.0.0-beta.1 #518

Closed
jamesbebbington opened this issue Nov 23, 2023 · 1 comment

Comments

@jamesbebbington
Copy link

Excited to see the v2 beta released! However with rails 7.1.2 I'm getting:

$ rails -T
bin/rails aborted!
NoMethodError: undefined method `thread_mattr_accessor' for Turbo:Module (NoMethodError)

  thread_mattr_accessor :current_request_id
  ^^^^^^^^^^^^^^^^^^^^^
/Users/james/.rvm/gems/ruby-3.2.2@jobscout/gems/turbo-rails-2.0.0.pre.beta.1/lib/turbo-rails.rb:8:in `<module:Turbo>'

Should #508 have been merged in first? That small tweak fixes it for me.

@afcapel
Copy link
Contributor

afcapel commented Nov 23, 2023

Right, PR merged, the fix should be available in the next beta release. In the meantime you can include the require manually in your application.

@afcapel afcapel closed this as completed Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants