Skip to content
代码片段 群组 项目
未验证 提交 9b002039 编辑于 作者: Nick Thomas's avatar Nick Thomas
浏览文件

Add eager-load paths to autoload paths to fix Rake tasks

Rake doesn't respect eager-loading, so to avoid explicit requires we have to
duplicate the eager-load config into the auto-load config.

This backports an EE change made in https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3706
上级 391bb437
No related branches found
No related tags found
无相关合并请求
...@@ -34,6 +34,10 @@ class Application < Rails::Application ...@@ -34,6 +34,10 @@ class Application < Rails::Application
config.generators.templates.push("#{config.root}/generator_templates") config.generators.templates.push("#{config.root}/generator_templates")
# Rake tasks ignore the eager loading settings, so we need to set the
# autoload paths explicitly
config.autoload_paths = config.eager_load_paths.dup
# Only load the plugins named here, in the order given (default is alphabetical). # Only load the plugins named here, in the order given (default is alphabetical).
# :all can be used as a placeholder for all plugins not explicitly named. # :all can be used as a placeholder for all plugins not explicitly named.
# config.plugins = [ :exception_notification, :ssl_requirement, :all ] # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册