-
-
Notifications
You must be signed in to change notification settings - Fork 118
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
LoadError: cannot load such file #74
Comments
This is because of how the GemInflector is implemented: https://github.com/fxn/zeitwerk/blob/757dd734340024e487bd9678dcf80a567064bfdc/lib/zeitwerk/gem_inflector.rb It doesn't handle sub namespaces, so you'll have to setup a custom one. |
Oh, I see you already started that: https://github.com/argus-api-team/activestorage-openstack/blob/c404abc9e7d161cfa50f0d9ab29e4550d8cc2389/lib/support/zeitwerk.rb#L8 So just add another rule for |
Also, another unrelated advice, you should namespace that inflector class, because right now you are defining it at the top level, and |
I understand, thank you for your quick feedback. I will fix the gem accordingly. Regards |
Hi,
I am trying to upgrade from Rails 6 beta 3 to finale but something changed.
My app uses this gem https://github.com/mickael-palma-argus/activestorage-openstack which also uses Zeitwerk (you helped me with it a few months back).
Everything worked fined with 6.0.0.beta3 but now when I start my app with the final 6.0.0 I have this error:
The text was updated successfully, but these errors were encountered: