Steve Rawlinson
2007-Jun-01 17:49 UTC
Rails does not auto-re-read files in /lib in devel mode?
In development mode my understanding is that Rails re-reads every file each time a client does something in order to make sure any new code is implemented. Bt it doesn''t seem to do this with files in /lib - is there a way to make sure it does? steve -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Xavier Noria
2007-Jun-01 17:58 UTC
Re: Rails does not auto-re-read files in /lib in devel mode?
On Jun 1, 2007, at 7:49 PM, Steve Rawlinson wrote:> In development mode my understanding is that Rails re-reads every file > each time a client does something in order to make sure any new > code is > implemented. Bt it doesn''t seem to do this with files in /lib - is > there > a way to make sure it does?That''s not exact, by reductio ad absurdum :-). Which version of Rails are you using? -- fxn --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Rick Olson
2007-Jun-01 18:04 UTC
Re: Rails does not auto-re-read files in /lib in devel mode?
On 6/1/07, Steve Rawlinson <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > In development mode my understanding is that Rails re-reads every file > each time a client does something in order to make sure any new code is > implemented. Bt it doesn''t seem to do this with files in /lib - is there > a way to make sure it does?Rails 1.2 reloads files that are autoloaded. If you require the file specifically it won''t reload it. -- Rick Olson http://lighthouseapp.com http://weblog.techno-weenie.net http://mephistoblog.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Steve Rawlinson
2007-Jun-01 18:13 UTC
Re: Rails does not auto-re-read files in /lib in devel mode?
Rick Olson wrote:> On 6/1/07, Steve Rawlinson <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >> >> In development mode my understanding is that Rails re-reads every file >> each time a client does something in order to make sure any new code is >> implemented. Bt it doesn''t seem to do this with files in /lib - is there >> a way to make sure it does? > > Rails 1.2 reloads files that are autoloaded. If you require the file > specifically it won''t reload it.Ok, that makes sense. I am indeed using require. Thankyou very much. steve -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---