Skip to content
Browse files

2.2 Relnotes: more info on association proxies

  • Loading branch information...
1 parent b02e010 commit c0eb4d07ab4ca1bbae76829e95e66053a564c525 @ffmike ffmike committed Oct 24, 2008
Showing with 2 additions and 0 deletions.
  1. +2 −0 railties/doc/guides/source/2_2_release_notes.txt
View
2 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

0 comments on commit c0eb4d0

Please sign in to comment.
Something went wrong with that request. Please try again.