It looks like association extensions have changed quite a bit throughout Rails 3.x.
I need to access the proxy owner and the proxy target (i.e, the has_many object and the belongs_to object).
The most recent documentation says To use proxy_association.owner
and proxy_association.target
. However, this throws an method missing. I found some older references (can't find them now), saying that self.proxy_target
would work. However this only seems to work intermittently and isn't reliable between my local environment and production (strange... I know).
Does anybody know where I can find more definitive answer on how to access the owner and target from within an association extension using Rails 3.0.10?