Any docs on the new dependencies stuff? I realize it follows the conventions Rails follows, so a top level directory foo contains a module Foo, which then includes the required files that are in child directories. However, I''m looking for stuff like - does this work in any directory w/i Rails, or only w/i /app? What will happen if you have two trees setup, one in /lib for instance and one in /test. Anyone know where to look for that besides the code? - Rob -- http://www.robsanheim.com http://www.seekingalpha.com http://www.ajaxian.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 -~----------~----~----~----~------~----~------~--~---
On 9/5/06, Rob Sanheim <rsanheim-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Any docs on the new dependencies stuff? I realize it follows the > conventions Rails follows, so a top level directory foo contains a > module Foo, which then includes the required files that are in child > directories. > > However, I''m looking for stuff like - does this work in any directory > w/i Rails, or only w/i /app? What will happen if you have two trees > setup, one in /lib for instance and one in /test. Anyone know where > to look for that besides the code? > > - RobI should clarify what I''m talking about here: when I say "dependencies", I''m referring to the new reloading/magical-loading of things by hooking into const_missing and and related methods. It was discussed here: http://weblog.rubyonrails.orgv/2006/8/11/reloading-revamped But I don''t see anything on what conventions it follows. For example, if I''m in a model file and try to use "NameSpace::Foo::Bar", what directory structure will Rails assume when it goes looking for the matching files? - Rob -- http://www.robsanheim.com http://www.seekingalpha.com http://www.ajaxian.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 -~----------~----~----~----~------~----~------~--~---
On Sep 5, 2006, at 8:52 PM, Rob Sanheim wrote:> But I don''t see anything on what conventions it follows. For example, > if I''m in a model file and try to use "NameSpace::Foo::Bar", what > directory structure will Rails assume when it goes looking for the > matching files?Think Java, where all the normal Rails directories are in the CLASSPATH. No NameSpace::Foo::Bar will be a file called bar.rb in a directory name_space/foo, somewhere in the Rails tree (say, under lib/) Dave --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---