简体   繁体   English

轨道中的弃用警告2.3.11

[英]Deprecation warning in rails 2.3.11

I am using Rails 2.3.11. 我正在使用Rails 2.3.11。 I am getting a lot of deprecation warning like 我得到了很多弃用警告

DEPRECATION WARNING: Rake tasks in vendor/plugins/delayed_job/tasks, 
vendor/plugins/fckeditor/tasks, 
vendor/plugins/jrails/tasks, 
vendor/plugins/query_reviewer/tasks, 
vendor/plugins/thinking-sphinx/tasks, 
vendor/plugins/tiny_mce/tasks, vendor/plugins/tolk/tasks,
 and vendor/plugins/xss_terminate/tasks are deprecated. 
Use lib/tasks instead. (called from /usr/lib/ruby/gems/1.8/gems/rails-2.3.11/lib/tasks/rails.rb:10)

Give suggestions to avoid these warnings 提出建议以避免这些警告

Move tasks into lib/tasks… No, actually, start using bundler. 将任务移动到lib / tasks中......不,实际上,开始使用bundler。 If an upgrade to Rails 3.x is too much work, at least move over to bundler and move all those dependencies into your Gemfile. 如果升级到Rails 3.x工作太多,至少转移到bundler并将所有这些依赖项移动到你的Gemfile中。 It works fine with Rails 2.3. 它适用于Rails 2.3。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM