paranoid2
paranoid2 copied to clipboard
paranoid models for rails 4
It looks like the activerecord counter caches for the record and its associations are properly updated when a record is soft-deleted but not when the record is restored. Is this...
Add support for restoration of polymorphic relationships.
Hi there, I was auditing this for use in a project, but there's an issue with calling the field deleted_at and using #with_deleted as a name. Destroy in Rails will...
Now the polymorphic association will ignored, instead of raising an error when restoring a model.
Calling destroy or destroy! does not soft-delete. The Paranoid2::Persistance model simply hands off to super instead of soft deleting.
ActiveRecord's built-in uniqueness validation does not account for records deleted by paranoid2.