提交 34eac1cf 编写于 作者: C Carl Lerche

Load application specific rake tasks in the application object

上级 71a6b046
......@@ -29,6 +29,8 @@ def root
def load_tasks
require "rails/tasks"
Dir["#{root}/vendor/plugins/*/**/tasks/**/*.rake"].sort.each { |ext| load ext }
Dir["#{root}/lib/tasks/**/*.rake"].sort.each { |ext| load ext }
task :environment do
$rails_rake_task = true
initialize!
......
......@@ -16,8 +16,3 @@
).each do |task|
load "rails/tasks/#{task}.rake"
end
# Load any custom rakefile extensions
# TODO: Don't hardcode these paths.
Dir["#{Rails.root}/vendor/plugins/*/**/tasks/**/*.rake"].sort.each { |ext| load ext }
Dir["#{Rails.root}/lib/tasks/**/*.rake"].sort.each { |ext| load ext }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册