Thank you very much for helping me think through this.
Its a old project, where upgrading it is going to be a couple week
process.

On Oct 24, 11:44 pm, Frederick Cheung <[email protected]>
wrote:
> On Oct 24, 10:20 pm,tspore<[email protected]> wrote:
>
> > What I'm thinking is that my application is called the same name as
> > MyModel so in Application i'm loading in module MyModel
>
> ah, if you're defining
>
> module MyModel
> end
>
> somewhere like that then you can't also have
>
> class MyModel < AR:Base
> end
>
> in development mode it will just never load the AR class, in
> production it would try and fail (since my model cannot be a class and
> a module). You're going to have to pick non clashing names (the
> application name is probably easiest to change)
>
> Fred
>
>
>
>
>
>
>
> > But that is calling -
> >     class Application < Rails::Application .... end
>
> > But I'm not really sure how else to debug this.
> > Anythoughts?
>
> > On Oct 24, 9:09 am, Frederick Cheung <[email protected]>
> > wrote:
>
> > > On Oct 24, 4:03 pm,tspore<[email protected]> wrote:
>
> > > > Right. MyModel - would be in Theory the AR model, but it seems to be
> > > > erring out on the Helper. (Which it also has)
> > > > So for some reason I have a few of the upgraded models, which I can't
> > > > run basic querries against. But some which I can.
> > > > However, I don't see anything which would not allow those selected
> > > > models to be ran again AR queries.
>
> > > Is there a module call MyModel that might be shadowing your active
> > > record class ?
>
> > > Fred
>
> > > > class MyModel < ActiveRecord::Base
> > > >     ...........
> > > > end
> > > > module MyModelHelper
> > > >    ............
> > > > end
>
> > > > On Oct 24, 1:55 am, Frederick Cheung <[email protected]>
> > > > wrote:
>
> > > > > What is MyModel ? The error implies it's not actually an active record
> > > > > class
>
> > > > > Fred

-- 
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 [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-talk?hl=en.

Reply via email to