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

Quote the arguments passed to the Contains/Overlaps Arel nodes #41640

Merged
merged 1 commit into from Mar 8, 2021

Conversation

bradleypriest
Copy link
Contributor

Summary

#39246 by @alassek added Arel::Nodes::Contains and Arel::Nodes::Overlaps to the arel library.

This PR updates the predicate implementation slightly to also support the automatic quoting of values into Arel to match how the other predicates work.

Other Information

The test implementation leaves a bit to be desired, but I couldn't think of a better way to test this without reaching across boundaries

… align with the behaviour of existing predicates
@kamipo kamipo merged commit 982ed41 into rails:main Mar 8, 2021
pixeltrix pushed a commit that referenced this pull request Mar 27, 2021
Quote the arguments passed to the Contains/Overlaps Arel nodes

(cherry picked from commit 982ed41)
pixeltrix added a commit that referenced this pull request Mar 28, 2021
pixeltrix added a commit that referenced this pull request Mar 28, 2021
pixeltrix added a commit that referenced this pull request Mar 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants