-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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/SkipsModelValidations is inconsistence with touch #4098
Labels
Comments
Guess you're right. |
We're in the process of moving all Rails-related functionality to a standalone library (gem) named |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: