This project is archived and is in readonly mode.
default_scope inconsistent behavior
Reported by James | March 13th, 2009 @ 11:36 PM | in 3.x
I'm getting inconsistent results when using default_scope. What are its limitations? Right now I'm only trying to use it for default ordering, but it doesn't seem to work on models that use STI (the line appears to get completely ignored) -- and in a few other cases where there are a bunch of scopes chained together. I'm still trying to figure out the trend, but wanted to get a decent understanding of its design before I dig too deep.
Thanks.
James
Comments and changes to this ticket
-
Pratik March 14th, 2009 @ 11:42 AM
- State changed from new to incomplete
- Assigned user set to Pratik
I think it'll help more if you could provide a failing test case or an example of what's not working.
Thanks!
-
Neeraj Singh June 28th, 2010 @ 08:41 AM
- State changed from incomplete to invalid
- Importance changed from to
Marking it as invalid unless user is able to provide a way to reproduce the problem.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>