Acts_as_paranoid, is_paranoid ... Alternatives?

I am looking for a / gem rails plugin that removes ActiveRecord-Model marking functionality instead of removing it.

Does anyone know which stones or plugins are relevant? (AAP is deprecated, and is_paranoid does not seem to be used by the community.)

Do you know any alternatives?

+4
source share
4 answers

is_paranoid doesn't seem to be used by the community ..

http://chadfowler.com/blog/2009/07/08/how-ruby-mixins-work-with-inheritance/ - Just a blog post the other day says that. It seems like he solved Chad's problem just fine (and also made him write a message about inheritance and mixins).

+1
source

It seems that even the authors of both act_as_paranoid and is_paranoid no longer use their respective plugins / gems. Both use named scopes.

Yes, this is not automatic or anything else, but sometimes an explicit indication of your intentions is good.

+7
source

For completeness, here is a fresher stone for this:

Paranoia - act_as_paranoid for Rails 3

https://github.com/radar/paranoia

And further:

https://github.com/JackDanger/permanent_records

+3
source

How about you only have the valid:boolean column / attribute attribute and set it to false if you want to gently remove the model? Or am I missing something?

+1
source

All Articles