Re: Reloading controller plugins on each request

Nick
Sat, 10 Apr 2010 16:30:49 -0000

On Apr 10, 11:38 am, Nick <n...-qGbiljoI0DQkmLvzuZlaBw@public.gmane.org>
wrote:
> Is there a way to configure Rails to reload the plugin for each request?
>
> Here''s the code:http://gist.github.com/361804

The answer''s dead easy. Those child modules and classes need to split
out into separate files. So ActsAsDashboard::Config must be in lib/
acts_as_dashboard/config.rb , ActsAsDashboard::ClassMethods must be in
lib/acts_as_dashboard/class_methods.rb , etc.

Once I did that, everything in the plugin was reloaded.