Rails/Savebang
fails when persisted?
is checked on a broader expression
#1230
Labels
bug
Something isn't working
Expected behavior
I'd expect this branch to be allowed by
Rails/Savebang
, wherein I assign the created post in a conditional and branch onpersisted?
Actual behavior
The above will raise:
Use
create!instead of
createif the return value is not checked. Or check
persisted?on model returned from
create``RuboCop version
Also using rubocop-rails 2.23.1
The text was updated successfully, but these errors were encountered: