forked from kbrock/acts_as_paranoid
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add only_deleted scope and associated methods.
This patch makes it easy to get only the deleted records from a model class. This facilitates the creation of deleted records listings for "undelete"-like functionalities in your apps. Added methods: find_only_deleted, count_only_deleted and exists_only_deleted? Passing tests included (tested with activerecord 2.1).
- Loading branch information
Showing
2 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters