<commit_before># ActsAsParanoid

A simple plugin which hides records instead of deleting them, being able to recover them.

**This branch targets Rails 3.2.** If you're working with another version, switch to the corresponding branch.

## Credits

This plugin was inspired by [acts_as_paranoid](http://github.com/technoweenie/acts_as_paranoid) and [acts_as_active](http://github.com/fernandoluizao/acts_as_active).

While porting it to Rails 3, I decided to apply the ideas behind those plugins to an unified solution while removing a **lot** of the complexity found in them. I eventually ended up writing a new plugin from scratch.

## Usage

You can enable ActsAsParanoid like this:

```ruby
class Paranoiac < ActiveRecord::Base
  acts_as_paranoid
end
```

### Options<commit_msg>fix target rails version<commit_after># ActsAsParanoid

A simple plugin which hides records instead of deleting them, being able to recover them.

**This branch targets Rails 4.0.** If you're working with another version, switch to the corresponding branch.

## Credits

This plugin was inspired by [acts_as_paranoid](http://github.com/technoweenie/acts_as_paranoid) and [acts_as_active](http://github.com/fernandoluizao/acts_as_active).

While porting it to Rails 3, I decided to apply the ideas behind those plugins to an unified solution while removing a **lot** of the complexity found in them. I eventually ended up writing a new plugin from scratch.

## Usage

You can enable ActsAsParanoid like this:

```ruby
class Paranoiac < ActiveRecord::Base
  acts_as_paranoid
end
```

### Options
{'fraction_non_alphanumeric': 0.0761904761904762, 'fraction_numerical': 0.0038095238095238095, 'mean_word_length': 5.108527131782946, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6764633', 'n_tokens_mistral': 475, 'n_tokens_neox': 443, 'n_words': 192}