On Tuesday, May 7, 2013 9:05:46 AM UTC-7, Petr Kaleta wrote:
>
> Hey Jeremy, I am sorry, that my question was not clear enough. Yes, I want 
> paginate method to be available only on friends_dataset. Thats right. The 
> only think I don't know is how should I properly access current 
> friends_dataset state inside paginate method. So for example if I call:
>
> User[1].friends_dataset.order(:name).paginate
>
> how should I access ordered friends_dataset inside paginate method. And 
> also as you can see, friends association has its own dataset defined (as 
> described in my first post).
>

Like I said, that would be self inside the paginate method.  Note that 
"current friends_dataset state" doesn't make sense, as datasets should be 
considered stateless.

You should probably describe the end result you want to achieve.

Thanks,
Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to