Commit 925d54d3 by Drew Cimino

added :preserve_files notes to the README

parent 41da3a3c
......@@ -604,6 +604,19 @@ class AddAvatarFingerprintColumnToUser < ActiveRecord::Migration
end
```
File Preservation for Soft-Delete
-------
An option is available to preserve attachments in order to play nicely with soft-deleted models. (acts_as_paranoid, paranoia, etc.)
```ruby
has_attached_file :some_attachment, {
:preserve_files => "true",
}
```
This will prevent ```some_attachment``` from being wiped out when the model gets destroyed, so it will still exist when the object is restored later.
Custom Attachment Processors
-------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment