We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I just came across this in the schemas_controller:
schemas = Schema.all @schemas = Kaminari.paginate_array(schemas).page(params[:page])
I think paginate_array is for when you have a simple array object, with a AR query I think you could have
paginate_array
@schemas = Schema.all.page params[:page]
Which would have the advantage of calling limit/skip on the Schema query rather than bringing in all the items each time.
The text was updated successfully, but these errors were encountered:
I think this is because we're using Mongoid, and I couldn't find any suitable pagination solutions for Mongoid.
Sorry, something went wrong.
No branches or pull requests
I just came across this in the schemas_controller:
I think
paginate_array
is for when you have a simple array object, with a AR query I think you could haveWhich would have the advantage of calling limit/skip on the Schema query rather than bringing in all the items each time.
The text was updated successfully, but these errors were encountered: