Does anyone know of a gem that both soft deletes records from a database (just flags them as deleted as opposed to is actually deleted) and...
...also when do you any type of find automatically omits those trashed records without using any special user-defined scopes. E.g. it all takes place in the gem.
Cheers!
DHH is a fan of doing this with 'concerns' which are basically just module mixins and I like that minimalist approach.
Here's DHH's version - https://gist.github.com/1014971
Here's my bugfixed version - https://gist.github.com/4032984
You might want to checkout paper_trail
https://github.com/airblade/paper_trail
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With