paranoid2 icon indicating copy to clipboard operation
paranoid2 copied to clipboard

paranoid models for rails 4

Results 6 paranoid2 issues
Sort by recently updated
recently updated
newest added

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...

0 - Backlog

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.