# Getting plugins to automatically reload

**URL:** <https://www.ruby-forum.com/t/getting-plugins-to-automatically-reload/122970>\
**Category:** Rails\
**Created:** [December 13, 2007, 4:10am UTC](https://www.ruby-forum.com/t/getting-plugins-to-automatically-reload/122970 "2007-12-13T04:10:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rickm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/90ced4/32.png) [@rickm](https://www.ruby-forum.com/u/rickm)\
**Post date:** [December 13, 2007, 4:10am UTC](https://www.ruby-forum.com/t/getting-plugins-to-automatically-reload/122970/1 "2007-12-13T04:10:26Z")

</div>

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
