We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
.none()
I suggest to add paragraph about using method .none().
Let's say we have the following samples:
User.where(id: nil) User.where(id: 0) User.where(id: []) User.where(id: {}) User.limit(nil) User.limit(0)
All these lines can be replaced with the code:
User.none
The text was updated successfully, but these errors were encountered:
Are those other approaches common? Perhaps you could check on https://github.com/eliotsykes/real-world-rails
Sorry, something went wrong.
No branches or pull requests
I suggest to add paragraph about using method .none().
Let's say we have the following samples:
All these lines can be replaced with the code:
The text was updated successfully, but these errors were encountered: