On Sep 1, 7:39 pm, Dave Howell <[email protected]> wrote: > This isn't doing what I'd hoped: > > class Plants < Sequel::Model > order :plantname > end > > Is there a way to get a model to include an order in its dataset?
class Plant < Sequel::Model(DB.from(:plants).order(plantname)) end Or use set_dataset. 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.
