This project is archived and is in readonly mode.
STI ignored with scopes
-
joel (at developwithstyle)
Ok, so after further investigation, this is ony happenning when the scope is defined within the parent model (Event).
-
Neeraj Singh
- Tag changed from scope, sti to patch, rails3, scope, sti
Attached is a patch against Rails3 edge along with test.
Please see this gist if you are interested in why the solution is the way it is.
-
José Valim
- Milestone cleared.
- State changed from new to open
- Assigned user set to José Valim
-
Neeraj Singh
Attached is an improvised patch based on feedback by Valim.
-
Repository
- State changed from open to resolved
(from [58adc6737126242d189274d83c50bcade098800a]) STI should not ignore type condition while applying scopes from parent class scopes
[#4507 STI ignored with scopes state:resolved]
Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/58adc6737126242d189274d83c50bc...
