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
Rails/CompactBlank
select(&:present?)
Currently, Rails/CompactBlank suggests replacing list.reject(&:blank?) (and similar) with list.compact_blank.
list.reject(&:blank?)
list.compact_blank
Its inverse list.select(&:present?) could also be replaced with list.compact_blank
list.select(&:present?)
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Currently,
Rails/CompactBlank
suggests replacinglist.reject(&:blank?)
(and similar) withlist.compact_blank
.Its inverse
list.select(&:present?)
could also be replaced withlist.compact_blank
The text was updated successfully, but these errors were encountered: