Getting plugins to automatically reload

Hey there,

I’m trying to figure out why suddenly my plugins won’t auto reload on
request anymore. I used to use this code to make it work:

if RAILS_ENV == ‘development’
Dependencies.load_once_paths.flatten.each do |path|
Dependencies.load_once_paths.delete(path) if path =~ /plugins/
company_/
end
end

But when it stopped working, I started trying:

Dependencies.load_once_paths = []

and it didn’t make a difference.

I have this code in an initializer. I’m using Rails 2.0.1. This
started happening before I upgraded from edge to stable and the
upgrade didn’t fix anything. Any ideas?

Thanks in advance,
Rick

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs