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

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,