This project is archived and is in readonly mode.
Return associated records not proxies from readers of non-collection associations
-
Michael Koziarski
- Assigned user set to Michael Koziarski
I like this change, it indeed doesn't make any sense to return the proxy in this situation and it can lead to some weird crazy problems when your model uses the same method names as the proxy classes :)
I want to hold off till 2.3 ships though just in case people have some .is_a? conditions or somethign lying around.
Great work though
-
Pratik
- Tag changed from activerecord, association, associations, association_proxy to activerecord, association, associations, association_proxy, patch
- Title changed from [PATCH] return associated records not proxies from readers of non-collection associations to Return associated records not proxies from readers of non-collection associations
-
Santiago Pastorino
- State changed from new to open
- Importance changed from to
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.
-
Santiago Pastorino
- State changed from open to stale
-
Aliaksey Kandratsenka
From quick glimpse of rails 3 code base it seems to be still relevant. I.e. returning proxy from belong_to accessor stills makes little sense.
Obviously, patch needs some rebasing. I'm not following Rails development for some time already, so if any of ticket watchers want to try rebasing this for rails 3, feel free. -
Santiago Pastorino
- State changed from stale to open
-
Santiago Pastorino
- Milestone changed from 3.x to 3.1
- Assigned user changed from Michael Koziarski to Aaron Patterson
Thanks Aliaksey for re-opening.
I'm assigning Aaron since he is working a lot on AR, also I'm pretty sure that he would like this change :). -
rails
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
