From 323cfe1aaaf82774503f72a51f91ef2c9b909a1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20D?= Date: Fri, 8 Mar 2019 09:50:45 +0100 Subject: Improve doc of automatic inverse_of detection --- activerecord/lib/active_record/associations.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index 7bdbd8ce69..64c20adc87 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -703,8 +703,9 @@ module ActiveRecord # #belongs_to associations. # # Extra options on the associations, as defined in the - # AssociationReflection::INVALID_AUTOMATIC_INVERSE_OPTIONS constant, will - # also prevent the association's inverse from being found automatically. + # AssociationReflection::INVALID_AUTOMATIC_INVERSE_OPTIONS + # constant, or a custom scope, will also prevent the association's inverse + # from being found automatically. # # The automatic guessing of the inverse association uses a heuristic based # on the name of the class, so it may not work for all associations, -- cgit v1.2.3