# How do i reload a module in the vendor directory?

**URL:** <https://www.ruby-forum.com/t/how-do-i-reload-a-module-in-the-vendor-directory/101529>\
**Category:** Rails\
**Created:** [February 6, 2006, 12:06pm UTC](https://www.ruby-forum.com/t/how-do-i-reload-a-module-in-the-vendor-directory/101529 "2006-02-06T12:06:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![travis\_michel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e47c2d/32.png) [@travis\_michel](https://www.ruby-forum.com/u/travis_michel)\
**Post date:** [February 6, 2006, 12:06pm UTC](https://www.ruby-forum.com/t/how-do-i-reload-a-module-in-the-vendor-directory/101529/1 "2006-02-06T12:06:08Z")

</div>

This seems like a fairly straight forward question. I have code in the  
vendor directory.  
Any modifications that I make to the code are not respected. My rails  
app  
is in development mode so I would expect any require ‘code’ to be  
re-parsed. But this is not occuring… How so? I have a test to post  
if I  
need to, but I get the feeling that I am just missing something simple.  
I  
will spare the test for the moment.

If it is imporant, I am using lighttpd 1.3.14, rails 1.0.0, and  
actionpack  
1.11.2.

Best regards,  
Travis Michel.

---

<div class="post-metadata">

**Author:** ![travis\_michel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e47c2d/32.png) [@travis\_michel](https://www.ruby-forum.com/u/travis_michel)\
**Post date:** [February 6, 2006, 3:11pm UTC](https://www.ruby-forum.com/t/how-do-i-reload-a-module-in-the-vendor-directory/101529/2 "2006-02-06T15:11:02Z")

</div>

Hello,

On Mon, Feb 06, 2006 at 02:03:35AM -0900, travis michel wrote:

> This seems like a fairly straight forward question. I have code in the  
> vendor directory.  
> Any modifications that I make to the code are not respected. My rails app  
> is in development mode so I would expect any require ‘code’ to be  
> re-parsed. But this is not occuring… How so? I have a test to post if I  
> need to, but I get the feeling that I am just missing something simple. I  
> will spare the test for the moment.

Rails doesn’t parse the require to reload files. It uses its own  
dependency  
system. You can use model, observer or service method to create custom  
dependencies. look at  
[http://api.rubyonrails.com/classes/ActionController/Dependencies/ClassMethods.html](http://api.rubyonrails.com/classes/ActionController/Dependencies/ClassMethods.html)

Hope it helps,

Damien

---

<div class="post-metadata">

**Author:** ![travis\_michel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e47c2d/32.png) [@travis\_michel](https://www.ruby-forum.com/u/travis_michel)\
**Post date:** [February 6, 2006, 3:41pm UTC](https://www.ruby-forum.com/t/how-do-i-reload-a-module-in-the-vendor-directory/101529/3 "2006-02-06T15:41:23Z")

</div>

Thank you Damien, That was exactly the kind of explanation I needed to  
understand what was happening.
