Dan Bikle
2005-Nov-25 22:30 UTC
What''s the difference between require and require_dependency?
People, What''s the difference between require and require_dependency? I looked here for clues: http://www.ruby-doc.org/core/ and I could not find either one. -Dan
Michael Schoen
2005-Nov-26 02:18 UTC
Re: What''s the difference between require and require_dependency?
> What''s the difference between require and require_dependency? > > I looked here for clues: > http://www.ruby-doc.org/core/ > and I could not find either one."require" is standard ruby. "require_dependency" is a Rails extension that works some magic when operating in development mode (in which Rails reloads most of the app classes with each request).
Peter Michaux
2005-Nov-26 02:47 UTC
Re: Re: What''s the difference between require and require_dependency?
can require_dependency be made to reload all of the applicaiton not just the things in the app directory? Editing plugin files or css requires restarting webrick which is a pain. -Peter On 11/25/05, Michael Schoen <schoenm-ihVZJaRskl1bRRN4PJnoQQ@public.gmane.org> wrote:> > > What''s the difference between require and require_dependency? > > > > I looked here for clues: > > http://www.ruby-doc.org/core/ > > and I could not find either one. > > "require" is standard ruby. "require_dependency" is a Rails extension > that works some magic when operating in development mode (in which Rails > reloads most of the app classes with each request). > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails