Closed FLeinzi closed 4 years ago
Depending on the form model, you should maybe even have records behind a relation use a form model as well and need to use change_association
in to express that properly.
Explicitly specifying inverse_of: false
when you don't have an inverse is perfectly fine.
Looks like we keep this cop, no change is needed.
https://www.rubydoc.info/gems/rubocop-rails/RuboCop/Cop/Rails/InverseOf
Fix:
There will be many situations especially in form models where we don't have an inverse relation for
belongs_to
. So we have to set them toinverse_of: false
.Is this what we really want? :+1: for keeping, :-1: for disabling the cop