Skip to content

Commit

Permalink
2.2 Relnotes: more info on association proxies
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Gunderloy authored and Mike Gunderloy committed Oct 24, 2008
1 parent b02e010 commit c0eb4d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions railties/doc/guides/source/2_2_release_notes.txt
Expand Up @@ -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

Expand Down

0 comments on commit c0eb4d0

Please sign in to comment.