Logan Capaldo
12/28/2006 5:21:00 AM
On Tue, Dec 26, 2006 at 07:15:04AM +0900, S. Robert James wrote:
>
> S. Robert James wrote:
> > Is it possible that Rails changes things somehow?
> > I think I know - the autoloader can't find them then!
>
> Does that make any sense? The autoloader can find them if I include
> People in the global namespace, but not if I include it in the class?!
> If so, is there a workaround?
>
Yes it makes sense and you are probably right. The workaround is to
explicitly require the file
e.g:
require 'people' # Or whatever the file is