Topic: Rake problem with older rails app

I updated one of my apps too rails 3 but now the rake in my older apps doesn't work.

This app has no gemfile but only a rakefile

require(File.join(File.dirname(__FILE__), 'config', 'boot'))

require 'rake/dsl_definition' 

require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'

require 'tasks/rails'

I included the dsl_definition after problems with this error

uninitialized constant Rake::DSL

But now my app is running into next error

undefined method `deprecate' for #<Rake::Application:0x10047c308>

can anybody tell me how i can use rake in my older applications.

Re: Rake problem with older rails app

Finally i found a solotion that works for me

require(File.join(File.dirname(__FILE__), 'config', 'boot'))

require 'rake/dsl_definition' 



require 'rake'
require 'rake/testtask'

#require 'rake/rdoctask'

require 'rdoc/task'
RDoc::Task.new do |rdoc|
end

require 'tasks/rails'

It seems that ruby on rails became more and more difficult to work with.
But i'am very happy that it works for me.