Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1410 from smallspark/doco-updates
Browse files Browse the repository at this point in the history
Add documentation for `preserve_files` option
  • Loading branch information
Jon Yurek committed Jan 10, 2014
2 parents f2c670e + 6b4c254 commit eeddf29
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/paperclip.rb
Expand Up @@ -129,8 +129,9 @@ module ClassMethods
# :default_style => :normal
# user.avatar.url # => "/avatars/23/normal_me.png"
# * +keep_old_files+: Keep the existing attachment files (original + resized) from
# being automatically deleted when an attachment is cleared or updated.
# Defaults to +false+.#
# being automatically deleted when an attachment is cleared or updated. 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
# to a command line error. This will override the global setting for this attachment.
# Defaults to true.
Expand Down

0 comments on commit eeddf29

Please sign in to comment.