This project is archived and is in readonly mode.
Can't overwrite select for has_many through
-
Michał Łomnicki
- Tag changed from activerecord rails3, has_many_through, select to activerecord rails3, has_many_through, patch, select
I've prepared patch and test case for this issue
-
Jon Leighton
- State changed from new to open
- Assigned user set to Aaron Patterson
- Importance changed from to Low
I can confirm this is an issue and that the proposed patch fixes it. However, it did not apply cleanly, so I've updated it and attached. I've also removed the modification to
:readonlyinconstruct_find_scopeas it's not clear what this change is for, and it lacks a test. Please open another issue for that change if necessary (perhaps look at #5442 Model.has_many_through_association.find(id) returns a read-only record?) -
Repository
- State changed from open to resolved
(from [030480ac1f4fbf8bf74a0d9298544426caf26894]) Fix behaviour of foo.has_many_through_association.select('custom select') [#6089 Can't overwrite select for has_many through state:resolved] https://github.com/rails/rails/commit/030480ac1f4fbf8bf74a0d9298544...
