-
-
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/HasManyOrHasOneDependent false positive #5234
Comments
8 tasks
I confirmed this issue reproduce and opened a PR. Thanks! |
11 tasks
koic
added a commit
to koic/rubocop
that referenced
this issue
Dec 15, 2017
…endent` Fixes rubocop#5234. Since there was no test case using `class_name` option in `with_options` block, this PR added it as a reproduction test and fixed it.
bbatsov
pushed a commit
that referenced
this issue
Dec 15, 2017
Fixes #5234. Since there was no test case using `class_name` option in `with_options` block, this PR added it as a reproduction test and fixed it.
This was referenced Dec 27, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
With the following code snippet, Rubocop should not trigger any error:
Actual behavior
Rubocop triggers "Rails/HasManyOrHasOneDependent" for the two
has_many
associations that have theclass_name
argument.Steps to reproduce the problem
Copypaste the example code above.
RuboCop version
The text was updated successfully, but these errors were encountered: