I just found a bug in one of the rake tasks shipped with Rails. Is there a way to monkey patch a rake task?
+2
A:
Yes.
You can do something like this:
Rake::Task['doc:app'].clear
and then define your own task
namespace :doc do
task :app do
# work your magic
end
end
ottobar
2010-03-09 21:18:50
Thanks, it worked like a charm!
KandadaBoggu
2010-03-09 21:36:40