noisyzen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Dec-07 14:29 UTC
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. 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---