You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/source/association_basics.md
-6Lines changed: 0 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2821,12 +2821,6 @@ class Supplier < ApplicationRecord
2821
2821
end
2822
2822
```
2823
2823
2824
-
Extensions can refer to the internals of the association proxy using these three attributes of the `proxy_association` accessor:
2825
-
2826
-
*`proxy_association.owner` returns the object that the association is a part of.
2827
-
*`proxy_association.reflection` returns the reflection object that describes the association.
2828
-
*`proxy_association.target` returns the associated object for `belongs_to` or `has_one`, or the collection of associated objects for `has_many` or `has_and_belongs_to_many`.
2829
-
2830
2824
### Association Scoping using the Association Owner
2831
2825
2832
2826
The owner of the association can be passed as a single argument to the scope
0 commit comments