Enable automatic inverse_of infering
It looks like we can't really benefit from this rule because usually we need to specify the option anyway (maybe `user has_many :comments` is one of the few exceptions). We might make some changes in the code when Rubocop changes its Rails/InverseOf rule so it doesn't report this case when using Rails 7, but, until then, we aren't changing anything so we don't have to deal with false positives in Rubocop.
This commit is contained in:
@@ -50,7 +50,7 @@ Rails.application.config.active_storage.video_preview_arguments =
|
||||
"-vf 'select=eq(n\\,0)+eq(key\\,1)+gt(scene\\,0.015),loop=loop=-1:size=2,trim=start_frame=1' -frames:v 1 -f image2"
|
||||
|
||||
# Automatically infer `inverse_of` for associations with a scope.
|
||||
# Rails.application.config.active_record.automatic_scope_inversing = true
|
||||
Rails.application.config.active_record.automatic_scope_inversing = true
|
||||
|
||||
# Raise when running tests if fixtures contained foreign key violations
|
||||
# Rails.application.config.active_record.verify_foreign_keys_for_fixtures = true
|
||||
|
||||
Reference in New Issue
Block a user