Thank you for an advice, Jeremy.
> Foo.def_dataset_method(:[]){|id| first(:id=>id)}
> Foo.user(user_id)[id]
I'll try with this method.
Regards,
Shun
-----
Mellowtone Inc. - life is a melody
Shunichi Arai
http://www.mellowtone.co.jp
http://asiajin.com/blog/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---