On Feb 21, 5:11 pm, Nels Nelson <[email protected]> wrote: > I tried to reply to an earlier discussion on database switching in > Sequel, but it seems that I somehow sent an e-mail to the author, > instead. Apologies. > > The following gist demonstrates my problem. > > https://gist.github.com/838034 > > Please know that I realize that this will work if I were to just leave > the Test.db alone. But then the Test.db would still be left with the > original db, even though I explicitly set the Sequel::Model.db, which > is not acceptable. > > Also know that I realize that the whole Sequel::Model::descendants > monkey-patch thing is god-awful wrong, but it's the only way I found > to access the db of every defined model. Again, this wouldn't be a > problem if setting the Sequel::Model.db would actually change the > database of the models classes inheriting from Sequel::Model. > > Can anyone perhaps offer a solution to this dilemma?
Took a couple days after approval for this to show up, thanks Google Groups! Anyway, I resolved this problem with Nels directly. It was caused because he override Sequel::Model.inherited and didn't call super. 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.
