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

Fix regression in f1dc4b3d; total_count is not the same as total_pages #959

Closed
wants to merge 1 commit into from

Conversation

cbeer
Copy link
Member

@cbeer cbeer commented Jul 25, 2014

Fixes #958. This is the expedient thing to revert, but maybe there's a better approach. @jcoyne?

@@ -93,7 +93,11 @@ def first_page?
# know the total number of pages.
# https://github.com/amatsuda/kaminari/blob/v0.16.1/lib/kaminari/models/page_scope_methods.rb#L21
Copy link
Member

Choose a reason for hiding this comment

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

Please document the return values for this method. This class is a bit confusing and more documentation would be helpful.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.17%) when pulling fc994f2 on issue-958 into 1334888 on master.

@jcoyne
Copy link
Member

jcoyne commented Jul 29, 2014

@cbeer It appears that these changes break a few tests.

@cbeer
Copy link
Member Author

cbeer commented Jul 30, 2014

Should we just revert f1dc4b3 wholesale?

@cbeer cbeer changed the title Fix regression in fadc4b3d; total_count is not the same as total_pages Fix regression in f1dc4b3d; total_count is not the same as total_pages Jul 30, 2014
@jcoyne
Copy link
Member

jcoyne commented Jul 30, 2014

@cbeer fadc4b3d was a fix for not showing the "more" link after the first page, so I think it's currently less severely broken than before. That issue was caused by the fix for #928

@jcoyne
Copy link
Member

jcoyne commented Aug 7, 2014

Superseded by #961

@jcoyne jcoyne closed this Aug 7, 2014
@cbeer cbeer deleted the issue-958 branch August 7, 2014 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Facet "More>>" link shows up for every facet
3 participants