forked from thoughtbot/paperclip
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated NEWS and UPGRADING with details of thoughtbot#1903
- Loading branch information
Showing
2 changed files
with
15 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
################################################## | ||
# NOTE FOR UPGRADING FROM PRE-3.0 VERSION # | ||
# NOTE FOR UPGRADING FROM 4.3.0 OR EARLIER # | ||
################################################## | ||
|
||
Paperclip 3.0 introduces a non-backward compatible change in your attachment | ||
path. This will help to prevent attachment name clashes when you have | ||
multiple attachments with the same name. If you didn't alter your | ||
attachment's path and are using Paperclip's default, you'll have to add | ||
`:path` and `:url` to your `has_attached_file` definition. For example: | ||
Paperclip is now compatible with aws-sdk >= 2.0.0. | ||
|
||
has_attached_file :avatar, | ||
:path => ":rails_root/public/system/:attachment/:id/:style/:filename", | ||
:url => "/system/:attachment/:id/:style/:filename" | ||
If you are using S3 storage, aws-sdk >= 2.0.0 requires you to set the s3_region. | ||
|
||
If you want to continue using an earlier version of aws-sdk, replace | ||
aws-sdk with aws-sdk-v1 in your Gemfile. | ||
|
||
If both are in your Gemfile, paperclip will use aws-sdk v2. |