Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

Start pagination fix #18

Merged
merged 2 commits into from
Jan 6, 2016
Merged

Start pagination fix #18

merged 2 commits into from
Jan 6, 2016

Conversation

rwd
Copy link
Contributor

@rwd rwd commented Jan 6, 2016

Fixes erroneous start from record 2 in prev/next pagination.


if index > 1
api_params[:start] = index - window # get one before
Rails.logger.debug("index: #{index}".blue.bold)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent indentation detected.

rwd added a commit that referenced this pull request Jan 6, 2016
@rwd rwd merged commit f430d66 into develop Jan 6, 2016
@rwd rwd deleted the start-pagination branch January 6, 2016 15:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants