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
Rack::Utils.build_nested_query with integer values #557
Comments
+1 Right now I just use my own wrapper to avoid having values silently discarded here, but it would be great if Rack did this check in the body of the https://github.com/rack/rack/blob/master/lib/rack/utils.rb#L165 |
I agree on this one, I was talking with @raggi about it. I will wait for him just in case. I did an sketch fix here https://gist.github.com/spastorino/7375c064765c35ec6b23 feel free to reuse that one if you want. Thanks! |
Looks fine to me. |
Not quite sure why I assumed build_query would work. I guess because the tests passed and the tests failed when I used build_nested query. The issue then however was a bug in rack (see rack/rack#557), for which this commit provides a quick fix.
+1 Ended up having to do the same workaround as @michaelsauter above. |
+1 |
Hi,
Not sure if this is intended behavior, but if you try to use build_nested_query like so:
It drops the value silently. If you think this is a bug, I can do a pull request or something. Thanks!
The text was updated successfully, but these errors were encountered: