mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Avoid load tasks from plugins recursively (so stuff in tests or vendor does not get loaded).
This commit is contained in:
@@ -27,7 +27,7 @@ module Rails
|
||||
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|
|
||||
|
||||
Reference in New Issue
Block a user