I have a model which has a field called deleted
, which is used to mark those deleted items.
So normally I would just want to query those having deleted = false
items, and in some special cases to list those deleted items for restoring.
Is it possible to do that? What I could do now is just using a named scope having :conditions => {:deleted => false}
Is there a better way to do it so that When I do Item.other_named_scope
, I could find all those not-deleted items?