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
fixes without_count last_page? behaviour #1009
Conversation
Thanks for your pull request. It would greatly be appreciated if you could add a test and fix the builds for Rails 4.2 and 4.1. We still do support them and we don't drop support for older versions unless it is extremely difficult. |
I just wanted to check in and see if you are still interested in updating the pull request.
|
@yuki24 Yes I will fix this. I've just not had a chance to revisit it yet. |
@yuki24 Should be fixed . |
Could you add tests? Regression tests are extremely important. |
kaminari-activerecord/lib/kaminari/activerecord/active_record_relation_methods.rb
Outdated
Show resolved
Hide resolved
@montdidier Thank you for your contribution! really appreciated. |
because it's not explained in the PR, and I couldn't reproduce the behavior locally #1009
I believe this will fix this bug.
After some experimentation I noted that
@arel.limit
is not always anInteger
. In the cases this code fails to perform as expected this type isArel::Nodes::BindParam
. After some inspection of the various types it appears to me this additional type can also be cloned and modified to behave as expected.