-
-
Notifications
You must be signed in to change notification settings - Fork 357
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
Unscope select
to avoid PG::UndefinedFunction
#283
Conversation
@donv Thanks for contributing. Can you please add a failing test case to demonstrate the problem? |
Hi @donv, should we be using count(:all) instead? |
Yes, using |
Hi @donv, would you mind doing that fix with the test? :) |
Hi @brendon ! No, I don't mind 😄 . Will put it on my plan for next week or the week after. Lots of things to do 😅 . |
Thanks @donv, we really appreciate it :) |
@donv: ping! :D |
Thanks for the ping. My plan has slipped :) Will get to it. |
Starting on this now. |
I have added a failing test that becomes green with the current change. |
I am trying to implement the I have tried a few ways to add the I now think my original idea is the best, to just unscope What do you think? |
Unscoping a default @swanandp, did you have any feedback? :) |
@donv, someone has proposed the |
Having a `default_scope` with a `select` breaks since acts_as_list 0.9.5. The error type is discussed here: rails/rails#19146 Unscoping the `select` scope fixes the problem.
@brendon Rebased and green tests. |
Thanks @donv, I'm happy with this. I'll release a new gem for you. |
Having a
default_scope
with aselect
breaks since acts_as_list 0.9.5. The error type is discussed here:rails/rails#19146
Unscoping the
select
scope fixes the problem.