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

Allow boolean attributes to be referenced without operator in where.has #131

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

owst
Copy link
Contributor

@owst owst commented Jan 9, 2024

To explicitly allow all of:

Post.where.has { published }
Post.where.has { published & (view_count >= 1) }
Post.where.has { (view_count >= 1) & published }

Fixes #129

To explicitly allow all of:
```ruby
Post.where.has { published }
Post.where.has { published & (view_count >= 1) }
Post.where.has { (view_count >= 1) & published }
```

Fixes rzane#129
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.

Boolean column reference without operator is only sometimes supported
1 participant