Skip to content

Commit

Permalink
Merge pull request #51449 from p8/guides/remove-proxy-association
Browse files Browse the repository at this point in the history
Remove `proxy_association` references from guides [ci-skip]
  • Loading branch information
p8 committed Apr 3, 2024
2 parents a134d91 + 1ba328e commit 3d418c0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions guides/source/association_basics.md
Expand Up @@ -2830,12 +2830,6 @@ class Supplier < ApplicationRecord
end
```

Extensions can refer to the internals of the association proxy using these three attributes of the `proxy_association` accessor:

* `proxy_association.owner` returns the object that the association is a part of.
* `proxy_association.reflection` returns the reflection object that describes the association.
* `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`.

### Association Scoping using the Association Owner

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

0 comments on commit 3d418c0

Please sign in to comment.