On Mon, Aug 23, 2021 at 12:13 AM Marcelo Pereira <
[email protected]> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/CADGZSSdUf4ha0x7_WSg_fON0wVLGh-YQ3q8KmJkq_0n3Xsjxqg%40mail.gmail.com.

Reply via email to