Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
paperclip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
paperclip
Commits
113198f9
Commit
113198f9
authored
Dec 11, 2013
by
Evan Prothro
Committed by
Jon Yurek
Mar 21, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup for s3_server_side_encryption option
parent
3918b326
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lib/paperclip/storage/s3.rb
+1
-1
spec/paperclip/storage/s3_spec.rb
+1
-1
No files found.
lib/paperclip/storage/s3.rb
View file @
113198f9
...
...
@@ -146,7 +146,7 @@ module Paperclip
@s3_server_side_encryption
=
false
end
if
@s3_server_side_encryption
@s3_server_side_encryption
=
@options
[
:s3_server_side_encryption
]
.
to_s
.
upcase
@s3_server_side_encryption
=
@options
[
:s3_server_side_encryption
]
end
unless
@options
[
:url
].
to_s
.
match
(
/\A:s3.*url\Z/
)
||
@options
[
:url
]
==
":asset_host"
...
...
spec/paperclip/storage/s3_spec.rb
View file @
113198f9
...
...
@@ -1045,7 +1045,7 @@ describe Paperclip::Storage::S3 do
object
.
expects
(
:write
).
with
(
anything
,
content_type:
"image/png"
,
acl: :public_read
,
server_side_encryption:
'AES256'
)
server_side_encryption:
:aes256
)
@dummy
.
save
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment