-
Notifications
You must be signed in to change notification settings - Fork 32
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
Reorders I18n.load_path #24
Comments
Does the logger and filtered_params get copied correctly from the rails app if we remove the |
Absolutely. For the time being I vendored your logger into my project and wrote the initializer to a file in |
I see why it's like this: |
Fixed in v1.11.0 |
Adding the initializer after
:load_config_initializers
reorders theI18n.load_path
(rails-i18n), giving the default translations from the gem higher priority than my modifications inconfig/locales
.I have no clue why this is happening, but when I remove the
after: :load_config_initializers
from the Railtie, everything is normal again.To emphasize: It seems to be about the position of this gems' initializer, not about what the initializer actually does.
Moreover, inspecting
MyApp::Application.instance.initializers.map(&:name)
listsgrape.middlware.logger
actually beforeload_config_initializers
.The text was updated successfully, but these errors were encountered: