Skip to content

Commit

Permalink
Update README for rails 5
Browse files Browse the repository at this point in the history
  • Loading branch information
jhawthorn committed Feb 2, 2016
1 parent 1d586ab commit 5de97ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Paranoia

Paranoia is a re-implementation of [acts\_as\_paranoid](http://github.com/ActsAsParanoid/acts_as_paranoid) for Rails 3 and Rails 4, using much, much, much less code.
Paranoia is a re-implementation of [acts\_as\_paranoid](http://github.com/ActsAsParanoid/acts_as_paranoid) for Rails 3/4/5, using much, much, much less code.

When your app is using Paranoia, calling `destroy` on an ActiveRecord object doesn't actually destroy the database record, but just *hides* it. 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.

Expand All @@ -20,7 +20,7 @@ For Rails 3, please use version 1 of Paranoia:
gem "paranoia", "~> 1.0"
```

For Rails 4, please use version 2 of Paranoia:
For Rails 4 or 5, please use version 2 of Paranoia:

``` ruby
gem "paranoia", "~> 2.0"
Expand Down

0 comments on commit 5de97ba

Please sign in to comment.