Skip to content
Browse files

Avoid load tasks from plugins recursively (so stuff in tests or vendo…

…r does not get loaded).
  • Loading branch information...
1 parent 4ca9765 commit d2759d125ae64e6fd64c8bffe7b15568698654bf @josevalim josevalim committed Jan 19, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/plugin.rb
View
2 railties/lib/rails/plugin.rb
@@ -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|

0 comments on commit d2759d1

Please sign in to comment.
Something went wrong with that request. Please try again.