Normally Model.set_dataset will not throw even if getting the schema
fails (for example because the database table doesn't yet exist). The
BooleanReaders overload of set_dataset changes this behavior, because
it makes an unguarded call to Model.columns (via
create_boolean_readers).

Is this a bug? It is causing me some trouble. For example, if you do
Sequel::Model.plugin :boolean_readers, then you can't use
Sequel::Model(:table_name) unless the underlying table is guaranteed
to exist (it will raise otherwise).

--

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