Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Acts_as_paranoid, is_paranoid... Alternatives?

I'm looking for a rails plugin/gem which brings the functionality of marking an ActiveRecord-Model deleted, instead of deleteing it.

Does anybody know, what gems or plugins are up to date? (AAP is out-dated and is_paranoid doesn't appear to be used by the community).

Do you know alternatives?

like image 874
BvuRVKyUVlViVIc7 Avatar asked Dec 18 '22 07:12

BvuRVKyUVlViVIc7


2 Answers

It seems even the authors of both acts_as_paranoid and is_paranoid aren't using their respective plugins/gems any more. Both are using named scopes.

Yeah, it's not automagic or anything, but sometimes being explicit about your intentions is a good thing.

like image 79
Trevor Oke Avatar answered Dec 28 '22 18:12

Trevor Oke


For completeness, here is a more recent gem for this purpose:

Paranoia - acts_as_paranoid for Rails 3

https://github.com/radar/paranoia

And another:

https://github.com/JackDanger/permanent_records

like image 25
Rhb123 Avatar answered Dec 28 '22 18:12

Rhb123