lib/paperweight/storage.rb in paperweight-0.0.3 vs lib/paperweight/storage.rb in paperweight-0.0.4
- old
+ new
@@ -15,9 +15,10 @@
client.delete_object(bucket: Paperweight.config.bucket, key: key)
end
def put(file, key)
client.put_object(
+ acl: 'public-read',
bucket: Paperweight.config.bucket,
key: key,
content_type: Paperclip::ContentTypeDetector.new(file.path).detect,
content_disposition: 'attachment',
body: file