squeel
squeel copied to clipboard
refactor collapse_wheres method so that string based where clauses are h...
...andled
Fixes #361
:+1: Is there anything that I can do to get this merged? We stumbled upon the same issue
:+1: Actually it started to bother me as well. Would be great if it could get merged.
@jorgevaldivia are you using this in prod? Any problems so far? Thanks for the PR btw.
Is there anything that we are waiting for with this? @bigxiang
I am using rails 4.2 and I noticed that just commenting out the collapse_where method solves the issue for me. I also noticed that only a few squeel tests fail when I comment out collapse_where and they seem like they may even be false alarms. See my comments here:
https://github.com/activerecord-hackery/squeel/issues/416#issuecomment-201965883
Full disclosure, I am not completely sure why collapse_where was added to begin with so i may be way off base.
Also, if we want to include a spec that reproduces the issue, I added one here:
https://github.com/viewthespace/squeel/commit/5571d4a96eb9d52f9427172acff6685b1692873f
thx!