From 12d27de5c061c59980a3543b7a33062bf768a02d Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Tue, 5 Jun 2018 13:55:56 -0500 Subject: [PATCH] Fix bug where S3 bucket wasn't always being set in the Settings file --- lib/chunked_uploader/s3.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/chunked_uploader/s3.rb b/lib/chunked_uploader/s3.rb index b80057e5..969a03cb 100644 --- a/lib/chunked_uploader/s3.rb +++ b/lib/chunked_uploader/s3.rb @@ -3,7 +3,7 @@ module ChunkedUploader class S3 MINIMUMBUFFER_SIZE = 5.megabytes - S3_BUCKET_NAME = ENV['S3_BUCKET_NAME'] + S3_BUCKET_NAME = Settings.aws.bucket_name # Upload a string to s3 using chunks instead of all as one string. This is useful reducing memory usage on huge files # @param [Enumerable] chunk_enum an enumerable of strings.