aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrançois D <francois.delfort@keycoopt.com>2019-03-08 09:50:45 +0100
committerFrançois D <francois.delfort@keycoopt.com>2019-03-08 09:50:45 +0100
commit323cfe1aaaf82774503f72a51f91ef2c9b909a1b (patch)
tree2ee7b300f0e8ee937507a92f23ed12e4867211c3
parent4b68e6dbf40558e06a5ceb2b9e1642d798b188ad (diff)
downloadrails-323cfe1aaaf82774503f72a51f91ef2c9b909a1b.tar.gz
rails-323cfe1aaaf82774503f72a51f91ef2c9b909a1b.tar.bz2
rails-323cfe1aaaf82774503f72a51f91ef2c9b909a1b.zip
Improve doc of automatic inverse_of detection
-rw-r--r--activerecord/lib/active_record/associations.rb5
1 files 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
- # <tt>AssociationReflection::INVALID_AUTOMATIC_INVERSE_OPTIONS</tt> constant, will
- # also prevent the association's inverse from being found automatically.
+ # <tt>AssociationReflection::INVALID_AUTOMATIC_INVERSE_OPTIONS</tt>
+ # 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,