fix message `DEPRECATION WARNING`by resque on rails3

I get message when I use resque on rails3. I fix this problem.

DEPRECATION WARNING: Rake tasks in /srv/hoge/vendor/plugins/resque/tasks/redis.rake and /srv/hoge/vendor/plugins/resque/tasks/resque.rake are deprecated. Use lib/tasks instead. (called from /srv/hoge/Rakefile:7)

You can fix the problem you command those lines.

$ mv vendor/plugins/resque/tasks/resque.rake   lib/tasks/
$ mv vendor/plugins/resque/tasks/redis.rake   lib/tasks/
$ vim lib/tasks/resque.rake
##
## replace line
##
## before 
$LOAD_PATH.unshift File.dirname(__FILE__) + ‘/../resque/lib’
## after
$LOAD_PATH.unshift File.dirname(__FILE__) + ‘/../../vendor/plugins/resque/lib’
##

Google Buzz

Leave a comment

Your comment