On Jun 13, 12:58 pm, John Anderson <[email protected]> wrote: > OK, so let's say I have > > class Passenger < Sequel::Model; end > > then obviously > > Passenger.dataset.model > > returns Passenger. I initially thought that > > Passenger.dataset.naked.model > > would return nil, but it returns Passenger. > > A dataset from, say, DB[:passengers] doesn't even have model defined as > a method. > > IMHO, Dataset#naked should then remove the model method. Or am I missing > something obvious?
Well, removing the model method is very different from having it return nil. It's possible to override naked to set model to nil, but what about using row_proc= to remove it? Also, how about the dataset destroy method? I don't think these changes are worth the effort, but I'll certainly consider them if people here think they are a good idea. 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.
