Cameron Booth
2006-Jul-26 17:02 UTC
[Rails] How to reload classes in lib/ without restarting server
Hi all, We have a class extending a class from a plugin. We didn''t know where to put it exactly, but the lib/ folder seemed to make sense. Problem is, it doesn''t reload the file for each request, so it makes development mode difficult (have to restart the webserver with every request). Any advice on how to make it reload? Thanks in advance! Cameron -- Posted via http://www.ruby-forum.com/.
Josh Susser
2006-Jul-26 17:37 UTC
[Rails] Re: How to reload classes in lib/ without restarting server
Cameron Booth wrote:> Hi all, > > We have a class extending a class from a plugin. We didn''t know where to > put it exactly, but the lib/ folder seemed to make sense. > > Problem is, it doesn''t reload the file for each request, so it makes > development mode difficult (have to restart the webserver with every > request). > > Any advice on how to make it reload?Include Reloadable in your class definition. class Example include Reloadable #... end -- Josh Susser http://blog.hasmanythrough.com -- Posted via http://www.ruby-forum.com/.