diff options
author | Mike Gunderloy <MikeG1@larkfarm.com> | 2008-10-24 16:28:35 -0500 |
---|---|---|
committer | Mike Gunderloy <MikeG1@larkfarm.com> | 2008-10-24 16:28:35 -0500 |
commit | c0eb4d07ab4ca1bbae76829e95e66053a564c525 (patch) | |
tree | 019c07f8e769bdf32f32b34f7a9e7796ec989aab /railties/doc/guides/source | |
parent | b02e010751d9ffbed01603b525c50a0c2a225ea3 (diff) | |
download | rails-c0eb4d07ab4ca1bbae76829e95e66053a564c525.tar.gz rails-c0eb4d07ab4ca1bbae76829e95e66053a564c525.tar.bz2 rails-c0eb4d07ab4ca1bbae76829e95e66053a564c525.zip |
2.2 Relnotes: more info on association proxies
Diffstat (limited to 'railties/doc/guides/source')
-rw-r--r-- | railties/doc/guides/source/2_2_release_notes.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/doc/guides/source/2_2_release_notes.txt b/railties/doc/guides/source/2_2_release_notes.txt index d5eeefb16f..4543b5309c 100644 --- a/railties/doc/guides/source/2_2_release_notes.txt +++ b/railties/doc/guides/source/2_2_release_notes.txt @@ -196,6 +196,8 @@ User.find_by_name!('Moby') Active Record association proxies now respect the scope of methods on the proxied object. Previously (given User has_one :account) +@user.account.private_method+ would call the private method on the associated Account object. That fails in Rails 2.2; if you need this functionality, you should use +@user.account.send(:private_method)+ (or make the method public instead of private or protected). Please note that if you're overriding +method_missing+, you should also override +respond_to+ to match the behavior in order for associations to function normally. * Lead Contributor: Adam Milligan +* More information: + - link:http://afreshcup.com/2008/10/24/rails-22-change-private-methods-on-association-proxies-are-private/[Rails 2.2 Change: Private Methods on Association Proxies are Private] === Other ActiveRecord Changes |