views:

60

answers:

1

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
Thanks, it worked like a charm!
KandadaBoggu