Nate Wiger wrote:
> I miss somthing obvious?
def_dataset_method:
class Account < Sequel::Model
def_dataset_method(:active) do
filter(:is_active => 1)
end
def_dataset_method(:admin) do
filter(:account_type_id => 3)
end
def_dataset_method(:by_newest_reg) do
order(:registration_date.desc)
end
end
--
Susumu IIMA
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---