Following up on my last message (which I closed myself), I'm looking to
create a class that extends Sequel::Model and uses the schema in a
Here's an example:
MyDB = Sequel.connect(
Then, when trying to define the class using that connection:
class Account < Sequel::Model(MyDB[:foo][:account])
This doesn't work. This does, however:
class Account < Sequel::Model(Sequel[:foo][:account])
It seems dangerous to not specify the connection to use. Is there a way to
do this to ensure that the data is correct?
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to firstname.lastname@example.org.
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.