-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Dependency is not registered when namespace is non-standard named #20
Comments
This is expected since it's not a regular word that includes an acronym that you need to register in your inflector. I'm not sure if registering just the acronym or the entire word will work, you need to verify that yourself. |
The acronym is declared in |
@deepj yeah but the path to files does not match the constant name, |
@solnic The problem is, at least in my understanding the situation, the Rails' Inflector returns
I tried NOTE: The naming of the app was chosen a few years ago btw :) |
I know why it's happening 🙀 I guess I would update documentation because it's taken from Suggestion,
And this is dangerous to set in Rails Inflector because it can affect 3rd-party gems which can use HTTP acronym in their names. It's safer to use |
yeah I've thought about it. In general I would like to make dry-rails zeitwerk-only eventually, because it's a much better solution than whatever old Rails is doing. |
I should add that you can (and in this case should) set up a custom inflector and configure it to your needs. It's a matter of doing |
Describe the bug
I have a namespace which looks like (example)
CloudNATS
. This is a namespace of Rails application declared inconfig/application.rb
as well.When I tried to import a dependecy, I got
To Reproduce
Expected behavior
The dependency is successfully imported without any exception. My namespace would
Your environment
The text was updated successfully, but these errors were encountered: