Plugin : adding filters in ApplicationController

Hi everybody !

I'm trying to extend the class ApplicationController with a plugin to
add filters to follow some executions. I don't know why, but I observed
a weird behaviour and I don't know why. Here is my code.


In development mode your code gets reloaded between requests - the
reloaded application controller class doesn't have this filter added
to it.

One way of working around this is for your plugin to add a method to
base (eg add_my_filter) and call that from whichever controllers use
There is also a hook ( config.to_prepare ) that it called before each
request in development mode