Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

default_scope inconsistent behavior

#2232

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

Reported by James · March 13th, 2009 @ 11:36 PM

State: invalid
Milestone: 3.x
Assigned to: Pratik Pratik
Importance: none

Activity

  1. Pratik
    Pratik
    • 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!

    March 14th, 2009 @ 11:42 AM

  2. Jeremy Kemper
    Jeremy Kemper
    • Milestone changed from 2.x to 3.x

    May 4th, 2010 @ 06:48 PM

  3. Neeraj Singh
    Neeraj Singh
    • 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.

    June 28th, 2010 @ 08:41 AM