Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix rubocop#120] Correct save-as-conditional checking
Fixes rubocop#120. The Rails/SaveBang rule emitted incorrect errors about using the return value of save-like calls in conditional nodes. It did not differentiate between such calls in the body versus the condition, where only the latter is necessarily a boolean expression.
- Loading branch information