Well... that was quick. Works like a charm. Thanks a bunch!
On Feb 14, 3:35 pm, Jeremy Evans <[email protected]> wrote: > On Feb 14, 3:20 pm, cult hero <[email protected]> wrote: > > > I recently switched over to Sequel from DataMapper primarily because I > > have MUCH better control over associations. I'm liking it so far too > > and it's working well. > > > Something I was using in DataMapper that I haven't seen a way to do in > > Sequel is to set a default ORDER BY for a model. Is there any way to > > do this? > > class Blah < Sequel::Model(DB[:blahs].order(:column1, :column2)) > # or: set_dataset dataset.order(:column1, :column2) > end > > 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 -~----------~----~----~----~------~----~------~--~---
