Commit eeddf29d by Jon Yurek

Merge pull request #1410 from smallspark/doco-updates

Add documentation for `preserve_files` option
parents f2c670e2 6b4c2548
...@@ -129,8 +129,9 @@ module Paperclip ...@@ -129,8 +129,9 @@ module Paperclip
# :default_style => :normal # :default_style => :normal
# user.avatar.url # => "/avatars/23/normal_me.png" # user.avatar.url # => "/avatars/23/normal_me.png"
# * +keep_old_files+: Keep the existing attachment files (original + resized) from # * +keep_old_files+: Keep the existing attachment files (original + resized) from
# being automatically deleted when an attachment is cleared or updated. # being automatically deleted when an attachment is cleared or updated. Defaults to +false+.
# Defaults to +false+.# # * +preserve_files+: Keep the existing attachment files in all cases, even if the parent
# record is destroyed. Defaults to +false+.
# * +whiny+: Will raise an error if Paperclip cannot post_process an uploaded file due # * +whiny+: Will raise an error if Paperclip cannot post_process an uploaded file due
# to a command line error. This will override the global setting for this attachment. # to a command line error. This will override the global setting for this attachment.
# Defaults to true. # Defaults to 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