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

Remove :order from scopes used to count paginated set #61

Closed
wants to merge 1 commit into from

Conversation

keeran
Copy link
Contributor

@keeran keeran commented Mar 16, 2011

I'm currently using additional #select's in my scope chain, and I'm ordering by one of those selects. The #count call must drop any other selects (they're usually merged fine).

It was either try and fix here or fix deeper in AR :)

Seeing as the order doesn't affect the count I thought it was a reasonable change.

Let me know what you think - I'll add specs if you think it's worth it.

@tmilewski
Copy link
Contributor

Pulled into my fork. Starting to pull the requests into my fork as this repo seems to be dead in the water.

@amatsuda
Copy link
Member

@keeran
Just merged this commit, so this fix will be included in the next release. Thanks!

@tmilewski
Sorry for being away for a month or so (since the earthquake hit our country), but I'm back to Kaminari development now.
Thank you very very much for caring this product and maintaining your fork. I really appreciate!

@amatsuda
Copy link
Member

Published 0.11.0 gem containing this patch. Thanks!

@amatsuda amatsuda closed this Apr 20, 2011
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.

None yet

3 participants