Commit 906d142cd2c7d4c3ef7df61aa796fa0f74fdd5df
Committed by
Rodrigo Souto
1 parent
6ff02712
Exists in
master
and in
29 other branches
Load plugins and their vendor/plugins tasks
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
Rakefile
@@ -9,4 +9,10 @@ require 'rake/rdoctask' | @@ -9,4 +9,10 @@ require 'rake/rdoctask' | ||
9 | 9 | ||
10 | ACTS_AS_SEARCHABLE_ENABLED = false if Rake.application.top_level_tasks.detect{|t| t == 'db:data:minimal'} | 10 | ACTS_AS_SEARCHABLE_ENABLED = false if Rake.application.top_level_tasks.detect{|t| t == 'db:data:minimal'} |
11 | 11 | ||
12 | +# rails tasks | ||
12 | require 'tasks/rails' | 13 | require 'tasks/rails' |
14 | + | ||
15 | +# plugins' tasks | ||
16 | +plugins_tasks = Dir.glob("config/plugins/*/{tasks,lib/tasks,rails/tasks}/**/*.rake").sort + | ||
17 | + Dir.glob("config/plugins/*/vendor/plugins/*/{tasks,lib/tasks,rails/tasks}/**/*.rake").sort | ||
18 | +plugins_tasks.each{ |ext| load ext } |