Skip to content
This repository was archived by the owner on Jul 10, 2018. It is now read-only.

Commit 0167bf2

Browse files
committed
Remove duplication by reusing existing method.
1 parent e4fd865 commit 0167bf2

File tree

1 file changed

+1
-3
lines changed
  • lib/paperclip/storage

1 file changed

+1
-3
lines changed

lib/paperclip/storage/s3.rb

+1-3
Original file line numberDiff line numberDiff line change
@@ -379,11 +379,9 @@ def flush_writes #:nodoc:
379379
retries = 0
380380
begin
381381
log("saving #{path(style)}")
382-
acl = @s3_permissions[style] || @s3_permissions[:default]
383-
acl = acl.call(self, style) if acl.respond_to?(:call)
384382
write_options = {
385383
:content_type => file.content_type,
386-
:acl => acl
384+
:acl => s3_permissions(style)
387385
}
388386

389387
# add storage class for this style if defined

0 commit comments

Comments
 (0)