-
-
Notifications
You must be signed in to change notification settings - Fork 264
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
"An error occurred while Rails/HasManyOrHasOneDependent cop" since v2.12.0 #535
Comments
Fixes rubocop#535. This PR fixes an error for `Rails/HasManyOrHasOneDependent` when using lambda argument and not specifying any options.
Thanks for your early feedback. I've opened #536.
Yep! Enjoy RubyKaigi Takeout 2021! Thank you! |
Awesome! Also, thank you so much for the nice talk! 😊 👏🏼 |
Wow, Thank you! |
…_one_dependent [Fix #535] Fix an error for `Rails/HasManyOrHasOneDependent`
Can we get this rolled out asap? it's going to make anyone who updated to 2.12 and have automated systems block builds etc. :( |
@imajes RuboCop Rails 2.12.1 has been released! @ybiquitous Thank you for confirmation! |
Thanks @koic ! |
Hi there, are you enjoying RubyKaigi 2021 Takeout? 😄
When I try v2.12.0 released today, I encounter the following error with the
Rails/HasManyOrHasOneDependent
cop:Expected behavior
I expect no errors like the previous version v2.11.3.
Actual behavior
Run
bundle exec rubocop --debug app/models/user.rb
:Steps to reproduce the problem
Prepare
Gemfile
:Prepare
app/models/user.rb
:Run:
bundle install
Run:
bundle exec rubocop --debug app/models/user.rb
You should see the error above.
RuboCop version
The text was updated successfully, but these errors were encountered: