Re: Reloading controller plugins on each request

Nick
Sat, 10 Apr 2010 15:38:08 -0000

> > Is there a way to configure Rails to reload the plugin for each
request?
>
> > Here''s the code:http://gist.github.com/361804
>
> > Thanks!
> > Nick

On Apr 10, 11:06 am, "kel...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org"
<kel...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> Did you try require_dependency instead of require?

I''ve never heard of require_dependency. I just gave it a try, but
unfortunately, all requests but the first result in this error:

"A copy of ActsAsDashboard::ClassMethods has been removed from the
module tree but is still active!"

That behaviour also occurs when I put this in environment.rb:

ActiveSupport::Dependencies.explicitly_unloadable_constants <<
''ActsAsDashboard''

--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org