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({