Mongoid::Paranoia adds a default scope to the model which generates the criteria
#<Mongoid::Criteria
selector: {:deleted_at=>{"$exists"=>false}},
options: {},
class: Line,
embedded: false>
I can find deleted documents with Model.deleted which generates,
#<Mongoid::Criteria
selector: {:deleted_at=>{"$exists"=>true}},
options: {},
class: Line,
embedded: false>
How can i override this so i can search both deleted and non-deleted documents.
PS Model.unscoped does not work
Try this(its kind of hack):