@@ -1208,8 +1208,10 @@ module ClassMethods
1208
1208
# [+:as+]
1209
1209
# Specifies a polymorphic interface (See #belongs_to).
1210
1210
# [+:through+]
1211
- # Specifies an association through which to perform the query. This can be any other type
1212
- # of association, including other <tt>:through</tt> associations. Options for <tt>:class_name</tt>,
1211
+ # Specifies an association through which to perform the query.
1212
+ #
1213
+ # This can be any other type of association, including other <tt>:through</tt> associations,
1214
+ # but it cannot be a polymorphic association. Options for <tt>:class_name</tt>,
1213
1215
# <tt>:primary_key</tt> and <tt>:foreign_key</tt> are ignored, as the association uses the
1214
1216
# source reflection.
1215
1217
#
@@ -1411,10 +1413,12 @@ def has_many(name, scope = nil, **options, &extension)
1411
1413
# [+:as+]
1412
1414
# Specifies a polymorphic interface (See #belongs_to).
1413
1415
# [+:through+]
1414
- # Specifies a Join Model through which to perform the query. Options for <tt>:class_name</tt>,
1415
- # <tt>:primary_key</tt>, and <tt>:foreign_key</tt> are ignored, as the association uses the
1416
- # source reflection. You can only use a <tt>:through</tt> query through a #has_one
1417
- # or #belongs_to association on the join model.
1416
+ # Specifies an association through which to perform the query.
1417
+ #
1418
+ # This can be any other type of association, including other <tt>:through</tt> associations,
1419
+ # but it cannot be a polymorphic association. Options for <tt>:class_name</tt>, <tt>:primary_key</tt>,
1420
+ # and <tt>:foreign_key</tt> are ignored, as the association uses the source reflection. You can only
1421
+ # use a <tt>:through</tt> query through a #has_one or #belongs_to association on the join model.
1418
1422
#
1419
1423
# If the association on the join model is a #belongs_to, the collection can be modified
1420
1424
# and the records on the <tt>:through</tt> model will be automatically created and removed
0 commit comments