Thanks

понедельник, 23 августа 2021 г. в 17:31:28 UTC+3, Jeremy Evans: 

> On Mon, Aug 23, 2021 at 12:13 AM Marcelo Pereira <marcelovit...@gmail.com> 
> wrote:
>
>> To make it work, you need to:
>> - Enable the extension prior to defining the FooModel class
>> - Run the paginate method on the model dataset with 
>> FooModel.dataset.paginate(1,2)
>>
>> I'm not sure if there's a reason why the model doesn't proxy the paginate 
>> method to its underlying dataset.
>>
>
> pagination is a dataset extension, not a model plugin, so it won't affect 
> model classes, only datasets.  You can add your own paginate class method 
> that calls the paginate method on the model's dataset.
>
> 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 sequel-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/50700195-2b0a-4806-a700-2f5894dee7e4n%40googlegroups.com.

Reply via email to