Thanks, ticket created: http://dev.rubyonrails.org/ticket/6031

On 9/5/06, Michael Koziarski <[EMAIL PROTECTED]> wrote:
>
> > My test to prove this problem, if anyone is interested:
> > 1. create a new rails app.
> > 2. generate a model called "Whatever"
> > 3. generate a model called "Other::Whatever"
> > 4. run script/console, type: Whatever and find that you get:
> > "NameError: uninitialized constant Whatever"
> > 5. type Other::Whatever and find that it works.
> > 6. Delete Other::Whatever, run script/console again, and find that now
> > the Whatever model magically exists again; it would seem loading
> > Other::Whatever unloads Whatever, or prevents it from loading, or
> > something.
> > 7. Please note that Other::Whatever and YetAnother::Whatever plays
> > nice together, but not with Whatever.
>
> This is definitely a bug,  create a ticket at dev.rubyonrails.org and
> perhaps it can be fixed for 1.2,   with trunk I see the following:
>
> >> Whatever
> LoadError: Expected
> script/../config/../config/../app/models/other/whatever.rb to define
> Whatever
>         from 
> ./script/../config/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:226:in
> `load_missing_constant'
>         from 
> ./script/../config/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:321:in
> `const_missing'
>         from 
> ./script/../config/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:328:in
> `const_missing'
>         from (irb):1
>
> Which is wrong.
>
> --
> Cheers
>
> Koz
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core
-~----------~----~----~----~------~----~------~--~---

Reply via email to