Quoth Frederick Cheung ([email protected]):
> 
> 
> On 3 Feb 2009, at 14:05, Kenneth Dunlap wrote:
> >
> >
> > class Scode < ActiveRecord::Base
> >    Scode.establish_connection(self::Conf)
> > end
> >
> > irb(main):001:0> require 'scode'
> > => true
> > irb(main):002:0> Scode
> > => Scode(Table doesn't exist)
> > irb(main):003:0> Scode.table_name
> > => "\e[4mScode\e[0ms"
> >
> > I know I can set the table name manually, but if this simple mechanism
> > is broken, how much other stuff is broken in this version?
> >
> Something to do with the connection pooling changes ?
> 

In the end, the problem was fixed by moving a require (which requires
a class completely unrelated to ActiveRecord anything) *above* the 
require which pulls in my activerecord classes.

Can't say that I much like the fragility of the arrangement.

Ken
--

I use the words you taught me. If they don't mean anything any more,
teach me others. Or let me be silent.
                        Samuel Beckett (Clov, Endgame)


--~--~---------~--~----~------------~-------~--~----~
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