Rails/CompactBlank cop gets triggered by reject
that calls blank?
on unrelated object
#626
Labels
bug
Something isn't working
Consider the following code snippet:
As far as I can see
reject
cannot be replaced withcompact_blank
here as the rejection condition relates to a different object (bar
).Expected behavior
This should not trigger the Rails/CompactBlank cop.
Actual behavior
It does trigger the Rails/CompactBlank cop.
Steps to reproduce the problem
See provided code snippet.
RuboCop version
The text was updated successfully, but these errors were encountered: