`
suchj
  • 浏览: 147341 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

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

    博客分类:
  • ruby
阅读更多
在运行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即可解决。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics