This project is archived and is in readonly mode.
Association proxy does not forward missing methods to the actual instance
-
wereHamster
Just when I posted the ticket I figured out how the association proxies work. How does this patch look?
-
wereHamster
Bah, lighthouse won't let me attach the patch.. see here instead: https://github.com/wereHamster/rails/compare/master...lighthouse/59...
-
Cesario
- Tag set to active record, 3.0
Hi,
Your commit makes the tests go read.
The problem with defining method with method_missing is that
@target.respond_to?(method)(in the association proxy piece of code you mention) will always returnsfalse. -
rails
- State changed from new to open
- Tag changed from active record, 3.0 to active record, 30
This issue has been automatically marked as stale because it has not been commented on for at least three months.
The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.
Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.
-
rails
- State changed from open to stale