We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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/SkipsModelValidations cop doesn't complain about the following relation:
belongs_to :user, touch: true
but it does complain in its test (Avoid using touch because it skips validations.):
it { should belong_to(:user).touch(true) }
Complain in both cases or in any of them. I would say that it should also complain in the relation.
0.47.1
The text was updated successfully, but these errors were encountered:
Guess you're right.
Sorry, something went wrong.
We're in the process of moving all Rails-related functionality to a standalone library (gem) named rubocop-rails. Please, migrate this issue to its issue tracker https://github.com/rubocop-hq/rubocop-rails/issues/
rubocop-rails
No branches or pull requests
Rails/SkipsModelValidations cop doesn't complain about the following relation:
belongs_to :user, touch: true
but it does complain in its test (Avoid using touch because it skips validations.):
it { should belong_to(:user).touch(true) }
Expected behavior
Complain in both cases or in any of them. I would say that it should also complain in the relation.
RuboCop version
The text was updated successfully, but these errors were encountered: