paranoia

paranoia

Paranoia is a re-implementation of acts_as_paranoid for Rails 3, using much, much, much less code. You would use either plugin / gem if you wished that when you called destroy on an Active Record object that it didn't actually destroy it, but just "hid" the record. Paranoia does this by setting a deleted_at field to the current time when you destroy a record, and hides it by scoping all queries on your model to only include records which do not have a deleted_at field.

Rubygem paranoia

Total Downloads
213275
Releases
14
Current Version
1.3.3
Released
2014-01-16 00:00:00 UTC
First Release
2010-10-06 13:00:00 UTC
Depends on following gems
Depending Gems
2

Github radar/paranoia

Watchers
434
Forks
131
Development activity
Less active
Last commit
2014-04-10 23:18:12 UTC
First commit

Resources

There are no resources yet, be the first to submit one!

Comments

There are no comments yet, be the first to write one!

Post a comment

Markdown supported
or
×

In order to continue, you must be signed in using your Github account.

If you're signing in using this account for the first time Github will ask for your permission to give access to your public user data to the Ruby Toolbox.

Although the Github Authorization page does not mention it, the request includes read-only access to your verified email address (user:email OAuth scope). This is neccessary so there's a way to notify you about comments, information about your accepted project edits and the like. You can review your notification settings on your account page once you're signed in.