# Reload specific plugins on every request in dev mode?

**URL:** <https://www.ruby-forum.com/t/reload-specific-plugins-on-every-request-in-dev-mode/120109>\
**Category:** Rails\
**Created:** [November 13, 2007, 8:46pm UTC](https://www.ruby-forum.com/t/reload-specific-plugins-on-every-request-in-dev-mode/120109 "2007-11-13T20:46:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![josh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/45deac/32.png) [@josh](https://www.ruby-forum.com/u/josh)\
**Post date:** [November 13, 2007, 8:46pm UTC](https://www.ruby-forum.com/t/reload-specific-plugins-on-every-request-in-dev-mode/120109/1 "2007-11-13T20:46:32Z")

</div>

Hi all

I have in mind to extract some functionality of my Rails app into  
plugins. So I’m already placing them into vendor/plugins with the same  
structure that a “real” plugin has.  
Now I have the problem that the plugins are only loaded when starting  
the server. So while I’m fine-tuning them I’d like to reload my specific  
pseudo-plugins on every request when in development mode.

How can I achieve that?

Thanks  
Josh

---

<div class="post-metadata">

**Author:** ![josh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/45deac/32.png) [@josh](https://www.ruby-forum.com/u/josh)\
**Post date:** [November 14, 2007, 12:01am UTC](https://www.ruby-forum.com/t/reload-specific-plugins-on-every-request-in-dev-mode/120109/2 "2007-11-14T00:01:58Z")

</div>

I found the following page…

[http://weblog.techno-weenie.net/2007/1/26/understanding-the-rails-plugin-initialization-process](http://weblog.techno-weenie.net/2007/1/26/understanding-the-rails-plugin-initialization-process)

…which tells me that adding…

Dependencies.load\_once\_paths.delete(lib\_path)

…at the top of init.rb of my plugin should do the trick, but it seems  
it doesn’t for me… ☹
