-
-
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 flagging has_many:through associations #4751
Comments
…fense if :through option was specified
❤️ |
Interestingly, I have the
And i get the error because Do you have any thoughts on the right way to set this up? or is this an issue with this |
Comming back to this issue, we made a strange discovery rencently. If we updated an EmailConfig with the following: email_config.filter_ids #=> [1]
email_config.filter_ids = [2, 3] The filter with id 1 would not receive a Adding the Maybe this should be made optional via config or at least documented 🤔 |
Rails/HasManyOrHasOneDependent seems to be wrongly flagging
has_many through:
associations.I have the following model
Expected behavior
I expect that running
rubocop
on this file would not report any offense.Actual behavior
I get the following report:
Steps to reproduce the problem
Run
rubocop
on a fail containing the code above.RuboCop version
The text was updated successfully, but these errors were encountered: