提交 d2759d12 编写于 作者: J José Valim

Avoid load tasks from plugins recursively (so stuff in tests or vendor does not get loaded).

上级 4ca97650
......@@ -27,7 +27,7 @@ def load_paths
end
def load_tasks
Dir["#{path}/**/tasks/**/*.rake"].sort.each { |ext| load ext }
Dir["#{path}/{tasks,lib/tasks,rails/tasks}/**/*.rake"].sort.each { |ext| load ext }
end
initializer :add_to_load_path, :after => :set_autoload_paths do |app|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册