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

add monkey patch for joining with ONLY keyword #35

Merged
merged 2 commits into from
Dec 25, 2023
Merged

add monkey patch for joining with ONLY keyword #35

merged 2 commits into from
Dec 25, 2023

Conversation

waymondo
Copy link
Owner

@waymondo waymondo commented Dec 25, 2023

it doesn't seem like there's a good way around the fact that currently Arel isn't flexible about how SQL JOIN strings get constructed regarding allowing the ONLY keyword to be conditionally appended. ideally one day Arel might support this, but for now we can monkey patch these methods. it doesn't feel great, but these methods have been stable for many years at this point.

also includes a bit more noise regarding linting

@waymondo waymondo changed the title monkey patch for join on only add monkey patch for joining with ONLY keyword Dec 25, 2023
@waymondo waymondo marked this pull request as ready for review December 25, 2023 03:56
@waymondo waymondo merged commit 6a78ec9 into main Dec 25, 2023
6 checks passed
@waymondo waymondo deleted the join-only branch December 25, 2023 03:56
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.

1 participant