This project is archived and is in readonly mode.
Duplicate association conditions are generated when using a named_scope on an association
-
gurenski
Thank you for noticing this issue. I'm seeing the exact same thing and its quite annoying. Any suggestions on how to fix this without having to include what's in the named scope within each instance?
-
Rizwan Reza
- No changes were found…
-
Marcelo Giorgi
- Assigned user set to Santiago Pastorino
- Tag changed from rails 2.3.5, associations, named_scope to rails 2.3.5, associations, named_scope, patch
- Importance changed from to High
Here I attach a fix for this duplication of conditions when applied to an AssociationCollection object.
This patch applies cleanly on 2-3-stable.
Please let me know any comment you may have.
-
Santiago Pastorino
- Milestone set to 2.3.9
- State changed from new to open
-
Santiago Pastorino
- Assigned user changed from Santiago Pastorino to Aaron Patterson
-
Repository
(from [9b78af95be01534b3f1a4187024d803313c0ee1f]) Remove duplication of conditions generated for associations when used in conjunction with named_scopes [#4634 state: resolved] http://github.com/rails/rails/commit/9b78af95be01534b3f1a4187024d80...
