Forum: Ruby on Rails Customizing with plugin - config.cache_classes = true breaks override

05e9d501004f27f3c62b48d432eee7c3?d=identicon&s=25 arcasys (Guest)
on 2011-01-29 02:18
(Received via mailing list)
I have a generic application which I need to cutomize for different
customer scenarios.
All customizations shall reside in a plugin.

E.g. a controller method or a view could be overridden in the plugin.
This works fine as long as I'm in development environment. In
production, i.e. when config.cache_classes = true, overriding won't
work and I get the original functionality.

Interestingly, I have a plugin with some rails monkey patches which
always works independent from class caching.

There are some other threads where similar effects have been discussed
but apart from suspecting that load sequence might play a role I
couldn't find anything that solves my problem.

Is there a 'best practice' to override controller functionality which
also works with cache_classes=true?

Thanks
Hans
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.