Reloading controller plugins on each request

Nick Hoffman
Sat, 10 Apr 2010 03:48:17 -0000

Hey guys. I''m writing an "acts_as_X" plugin that''s
used by
controllers. Unfortunately, the plugin isn''t being reloaded for each
request [in the dev env].

I thought that adding
    config.reload_plugins = true if RAILS_ENV == ''development''
to environment.rb , as well as
    require ''acts_as_X''
to my plugin''s init.rb would do the trick, but it doesn''t.

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

--
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