Commit 85ebe9da by David Jones Committed by Tute Costa

Update README preserve_files to be a boolean (#2262)

Before this change, the value for `preserve_files` was the string `"true"`, potentially confusing users that they should use stringified booleans like `"true"` and `"false"`.

However `"false"` would evaluate as truthy, and preserve files.
This appears to have been a factor in https://github.com/thoughtbot/paperclip/issues/1445#issuecomment-51430186
parent fbbba280
......@@ -740,7 +740,7 @@ An option is available to preserve attachments in order to play nicely with soft
```ruby
has_attached_file :some_attachment, {
preserve_files: "true",
preserve_files: true,
}
```
......
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