diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-03-09 21:04:25 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-09 21:04:25 +0900 |
commit | 176070f0baf28c65333cda9a6dd8c045643ea5bb (patch) | |
tree | a4a8b637d7e38640565e50a6518d3e28cf3d0fd5 /activerecord/lib | |
parent | 9175a4453298b97b6b0b6e144c5a45f94abbdc18 (diff) | |
parent | 323cfe1aaaf82774503f72a51f91ef2c9b909a1b (diff) | |
download | rails-176070f0baf28c65333cda9a6dd8c045643ea5bb.tar.gz rails-176070f0baf28c65333cda9a6dd8c045643ea5bb.tar.bz2 rails-176070f0baf28c65333cda9a6dd8c045643ea5bb.zip |
Merge pull request #35527 from tight/improve_doc_of_automatic_inverse_of
Improve doc of automatic inverse_of detection
[ci skip]
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/associations.rb | 5 |
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, |