On Jun 4, 2009, at 7:58 , Martin Emde wrote: > A lot of plugins I've seen just have you include a module into > ApplicationControllet as part of the install. It's explicit and > obvious. > > The other way I've seen is monkey patching ActionController::Base. The > logic behind this is that the plugin is modifying rails core, not your > app's files (i.e. ApplicationController).
I've tried both. Right now, I've an include on a module in a controller. The module is defined in a plugin. The module includes an index function. There is no error from the include statement. The module is not defined elsewhere. The controller does not have its own index function. Yet the function in the module is not getting called. I can create a new instance of the controller in the console and call index on it, and the module's index function is called. This has me totally flumoxed. --~--~---------~--~----~------------~-------~--~----~ SD Ruby mailing list [email protected] http://groups.google.com/group/sdruby -~----------~----~----~----~------~----~------~--~---
