提交 f57ca877 编写于 作者: M Michael Koziarski

Only skip eager loading the code if dependency_loading is still enabled.

Otherwise rake tasks which depend on environment will get errors about missing constants.
上级 7b6383f2
......@@ -406,7 +406,7 @@ def load_view_paths
# Eager load application classes
def load_application_classes
return if $rails_rake_task
return if $rails_rake_task && configuration.dependency_loading
if configuration.cache_classes
configuration.eager_load_paths.each do |load_path|
matcher = /\A#{Regexp.escape(load_path)}(.*)\.rb\Z/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册