On Mar 17, 4:15 pm, Aman Gupta <[email protected]> wrote:
> self.dataset.order!(:id) might work too
It does, but using dataset mutation methods on a model dataset is the
path to madness.
I would do:
class Event < Sequel::Model
set_dataset dataset.order(:id)
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.