You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We generally prefer to have things fail loud when we're not checking the return result, so it would be great to have a rubocop rule to enforce this strategy:
# baduser.update(email: 'not an email')# silently fails# gooduser.update!(email: 'not an email')# => validation error# goodifuser.update(email: 'not an email')
...
else
...
end
Same with save!, create!, and other AR methods.
The text was updated successfully, but these errors were encountered:
We generally prefer to have things fail loud when we're not checking the return result, so it would be great to have a rubocop rule to enforce this strategy:
Same with
save!
,create!
, and other AR methods.The text was updated successfully, but these errors were encountered: