Skip to content

Commit 3d418c0

Browse files
authored
Merge pull request rails#51449 from p8/guides/remove-proxy-association
Remove `proxy_association` references from guides [ci-skip]
2 parents a134d91 + 1ba328e commit 3d418c0

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

guides/source/association_basics.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2830,12 +2830,6 @@ class Supplier < ApplicationRecord
28302830
end
28312831
```
28322832

2833-
Extensions can refer to the internals of the association proxy using these three attributes of the `proxy_association` accessor:
2834-
2835-
* `proxy_association.owner` returns the object that the association is a part of.
2836-
* `proxy_association.reflection` returns the reflection object that describes the association.
2837-
* `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`.
2838-
28392833
### Association Scoping using the Association Owner
28402834

28412835
The owner of the association can be passed as a single argument to the scope

0 commit comments

Comments
 (0)