Added by Alexey Palazhchenko about 15 years ago
Hi all,
Is it possible to redefine controller method in plugin, for example ProjectsController#add ? I want to add some code without touching core. Can someone one give me a small example? Also, I think this example will be very useful for wiki page.
Aleksey Palazhchenko:
I've blogged about doing with with a Model but it should be pretty much the same code for a controller. You might run into some issues since the latest Redmine uses Rails 2.3.4 and Rails renamed the ApplicationController
class.
http://theadmin.org/articles/2009/4/13/how-to-modify-core-redmine-classes-from-a-plugin
Eric Davis