提交 c7835c51 编写于 作者: D Dallas Reedy

Removed mention of deprecated proxy methods in favor of using proxy_association.

上级 7302e1cd
......@@ -1855,14 +1855,15 @@ class Customer < ActiveRecord::Base
end
</ruby>
Extensions can refer to the internals of the association proxy using these three accessors:
Extensions can refer to the internals of the association proxy using these three attributes of the +proxy_association+ accessor:
* +proxy_owner+ returns the object that the association is a part of.
* +proxy_reflection+ returns the reflection object that describes the association.
* +proxy_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+.
* +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+.
h3. Changelog
* September 13, 2011: Removed mention of deprecated proxy methods in favor of using +proxy_association+.
* April 7, 2010: Fixed document to validate XHTML 1.0 Strict. "Jaime Iniesta":http://jaimeiniesta.com
* April 19, 2009: Added +:touch+ option to +belongs_to+ associations by "Mike Gunderloy":credits.html#mgunderloy
* February 1, 2009: Added +:autosave+ option "Mike Gunderloy":credits.html#mgunderloy
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册