Override the default scope in the flagged scope

The default scope is always applied, even in other scopes. Since we've added a `default_scope`, the flagged posts haven't been ordering correctly.
It's the default_scope! What else is it supposed to do‽


On Fri, Aug 8, 2014 at 11:11 AM, Robert Eshleman <notifications@github.com>
wrote:

> In app/models/post.rb:
>
> > @@ -11,6 +11,7 @@ class Post < ActiveRecord::Base
> >    validates :title, presence: true
> >
> >    scope :flagged, -> {
> > +    unscoped.
>
> @halogenandtoast <https://github.com/halogenandtoast> I know, I'm
> agreeing with you. I just don't see how this specific behavior
> (default_scope implicitly applying to other defined scopes) is desired.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/reshleman/craigstr/pull/17/files#r15997846>.
>