From ae1d41c1e1b8dd7b17d84f1ded456c0b40721bbc Mon Sep 17 00:00:00 2001 From: Ben Tregenna Date: Tue, 13 Aug 2019 13:00:02 +0100 Subject: [PATCH] Fixed type --- lib/modules/s3.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/s3.rb b/lib/modules/s3.rb index 5569eedfc..a4e1e131f 100644 --- a/lib/modules/s3.rb +++ b/lib/modules/s3.rb @@ -29,7 +29,7 @@ def self.link_to file_name, opts={for_import: false} end def upload object_name, source, opts - Bucket = @s3.bucket(Rails.application.secrets.aws_downloads_bucket) + bucket = @s3.bucket(Rails.application.secrets.aws_downloads_bucket) object = bucket.object(object_name) object.upload_file(source) @client.put_object_acl({