Restoring from acts_as_paranoid

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.


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?


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs