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

Commit

Permalink
Remove duplication by reusing existing method.
Browse files Browse the repository at this point in the history
  • Loading branch information
airblade committed Dec 2, 2015
1 parent e4fd865 commit 0167bf2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/paperclip/storage/s3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -379,11 +379,9 @@ def flush_writes #:nodoc:
retries = 0
begin
log("saving #{path(style)}")
acl = @s3_permissions[style] || @s3_permissions[:default]
acl = acl.call(self, style) if acl.respond_to?(:call)
write_options = {
:content_type => file.content_type,
:acl => acl
:acl => s3_permissions(style)
}

# add storage class for this style if defined
Expand Down

0 comments on commit 0167bf2

Please sign in to comment.