-
-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
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/RedundantPresenceValidationOnBelongsTo should not match strict validations #608
Comments
Thanks for reporting! |
pirj
added a commit
to pirj/rubocop-rails
that referenced
this issue
Dec 31, 2021
pirj
added a commit
to pirj/rubocop-rails
that referenced
this issue
Dec 31, 2021
I skimmed the commit and it looks like it should be a fix. I'm not able to test it locally at the moment. |
pirj
added a commit
to pirj/rubocop-rails
that referenced
this issue
Dec 31, 2021
pirj
added a commit
to pirj/rubocop-rails
that referenced
this issue
Jan 1, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
Strict changes validations to raise a ActiveModel::StrictValidationFailed instead of populating errors. Since this changes the default behavior the presence validation is not redundant.
Actual behavior
Steps to reproduce the problem
With user.rb as
RuboCop version
The text was updated successfully, but these errors were encountered: