-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Custom Acronym for UI breaks other gems/engines #6075
Comments
@rainerdema was this a quality of life change or something that was inevitable? |
This is a pesky issue, but it's a sensible request. |
@elia Would it break anything significant to rework that change? The commit says:
but I am having a hard time to understand the full impact here. |
@fthobe I think we can and should strive to keep |
@jhawthorn @amatsuda do you think it makes sense to touch this? We are unsure if we should align with rails or rails or rails should align with us here. |
Solidus has a custom inflection acronym for "Ui" (changing it to "UI"). This is correct in how UI is used. However, this means that other engines which use the default inflection ("Ui") are broken by default.
This means that to use another gem (such as Maglev), you need to monkeypatch their gem to rename the module.
Defining the inflection of a commonly used acronym within in apps codebase seems entirely outside of the scope of what Solidus provides, and I should be able to use Solidus without it changing the names of constants coming from other gems.
Solidus Version:
4.4.0
To Reproduce
Define a module using the default inflection for
ui
,"Ui"
. Alternatively, use a gem (such as Maglev). Note that it cannot be included in any class.Current behavior
Constants including the default inflection for
ui
cannot be loaded.Expected behavior
The default inflection for 'ui' is respected.
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: