On Feb 23, 11:54 pm, Nels Nelson <[email protected]> wrote:
> Oh!  Should have asked... why is it that when one reassigns the
> Sequel::Model.db to a new connection, one's other models fail to get
> automatically reassigned to the new connection?  Why must one manually
> reassign the connection for all descendants of Sequel::Model as
> demonstrated on line 73 of the gist?

Sequel::Model uses a copy-on-subclass-creation for all class level
data.  The best way to use it to have your database connection setup
correctly before creating model subclasses.  If you want to change the
database after creating model subclasses, it needs to be done in each
subclass.  This is by design.

Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-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/sequel-talk?hl=en.

Reply via email to