# Restoring from acts\_as\_paranoid

**URL:** <https://www.ruby-forum.com/t/restoring-from-acts-as-paranoid/122427>\
**Category:** Rails\
**Created:** [December 7, 2007, 3:29pm UTC](https://www.ruby-forum.com/t/restoring-from-acts-as-paranoid/122427 "2007-12-07T15:29:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [December 7, 2007, 3:29pm UTC](https://www.ruby-forum.com/t/restoring-from-acts-as-paranoid/122427/1 "2007-12-07T15:29:54Z")

</div>

Hello all,

I’m using acts\_as\_paranoid in one of my apps. I have been looking  
around for a way to restore items that have been deleted and have it  
do so across the board.

ie.

If I have Foo, Bar, Baz, if I delete Foo, it automatically deletes  
Bar’s and Baz’s associated with Foo.  
If I delete Bar, it automatically deletes Baz’s that belong to Bar.

I need to be able to _restore_ a deleted Foo, and have it then restore  
all Bar’s, and Baz’s Associated with it. (So, essentially to be able  
to undelete).

Is the preferred method to do this to extend the acts\_as\_paranoid  
plugin? Or, is there a better way?

Thanks,  
Samantha
