-
-
Notifications
You must be signed in to change notification settings - Fork 266
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/HasManyOrHasOneDependent false positive when passing a scope #541
Labels
bug
Something isn't working
Comments
koic
added a commit
to koic/rubocop-rails
that referenced
this issue
Sep 10, 2021
…ndent` Fixes rubocop#541. This PR fixes a false positive for `Rails/HasManyOrHasOneDependent` when using lambda argument and specifying `:dependent` strategy.
9 tasks
koic
added a commit
to koic/rubocop-rails
that referenced
this issue
Sep 11, 2021
…ndent` Fixes rubocop#541. This PR fixes a false positive for `Rails/HasManyOrHasOneDependent` when using lambda argument and specifying `:dependent` strategy.
koic
added a commit
that referenced
this issue
Sep 11, 2021
…many_or_has_one_dependent [Fix #541] Fix a false positive for `Rails/HasManyOrHasOneDependent`
RuboCop Rails 2.12.2 has been released with a fix for this issue. Thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
No offfence detected
Actual behavior
Rails/HasManyOrHasOneDependent
is detectedSteps to reproduce the problem
Given this model:
I get:
RuboCop version
The text was updated successfully, but these errors were encountered: