
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
grape-cursor_paginate_helper
Advanced tools
This library is Grape API Helper for ActiveRecord::CursorPaginator
Add the following line to your Gemfile and execute bundle install
gem 'grape-cursor_paginate_helper'
Here is a typical api definition using Grape::CursorPaginateHelper
class FakeAPI < Grape::API
helpers Grape::CursorPaginateHelper
resource :fake do
desc 'cursor_paginate'
cursor_paginate per_page: 10
get '/cursor_paginate' do
present cursor_paginate(Post.order(:display_index)).map(&:attributes).to_json
end
end
end
:forward (default) or :backwardX-Previous-Cursor: String - cursor of the first record. used for the backward paginate call.X-Next-Cursor: String - cursor of the last record. used for the forward paginate call.X-Total-Count: Integer - total count of relationADAPTER=mysql bundle exec rspec
ADAPTER=postgresql bundle exec rspec
Bug reports and pull requests are welcome on GitHub at . This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the Activerecord::CursorPagination project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
FAQs
Unknown package
We found that grape-cursor_paginate_helper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.