ITeye博客

WARNING: Global access to Rake DSL methods is deprecated. Please include

suchj · 2011-09-21 10:19 · ruby · 编程语言 · Markdown

在运行rake脚本的时候,出现这样的警告: WARNING: Global access to Rake DSL methods is deprecated. Please include ... Rake::DSL into classes and modules which use the Rake DSL methods.

WARNING: DSL method DemoApp::Application#task called at /usr/local/lib/ruby/gems/1.8/gems/railties-3.0.4/lib/rails/application.rb:214:in `initialize_tasks'

在Rakefile中的DemoApp::Application.load_tasks之前前再加上include Rake::DSL即可解决。

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。