Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing docs for pagination plugin #270

Closed
thomas opened this issue Nov 28, 2018 · 2 comments
Closed

Missing docs for pagination plugin #270

thomas opened this issue Nov 28, 2018 · 2 comments

Comments

@thomas
Copy link

thomas commented Nov 28, 2018

Can't find any documentation about the pagination plugin, how to enable it, etc.

@solnic solnic changed the title Feedback on ROM Missing docs for pagination plugin Nov 29, 2018
@solnic
Copy link
Member

solnic commented Nov 29, 2018

Thanks, we should definitely cover that in SQL docs. For the time being, all you need is this:

class YourRel < ROM::Relation[:sql]
  use :pagination
  per_page 20 # that's optional, defaults to 10
end

Instance API is documented here.

@solnic
Copy link
Member

solnic commented Jan 27, 2020

Closing because as it was reported as rom-rb/rom-sql#359

@solnic solnic closed this as completed Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants