aboutsummaryrefslogtreecommitdiffstats
path: root/lib/active_storage/service
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2017-07-06 15:31:37 +0200
committerDavid Heinemeier Hansson <david@loudthinking.com>2017-07-06 15:31:37 +0200
commit89e8b8654621dae37266e4fa6b38627122f66a56 (patch)
treeb67362b7d8063f3fc8e335b4ab543d18ecf49e46 /lib/active_storage/service
parentf3aba78ce8436fd09c5bade09092339a21880f7f (diff)
downloadrails-89e8b8654621dae37266e4fa6b38627122f66a56.tar.gz
rails-89e8b8654621dae37266e4fa6b38627122f66a56.tar.bz2
rails-89e8b8654621dae37266e4fa6b38627122f66a56.zip
We have the technology!
Diffstat (limited to 'lib/active_storage/service')
-rw-r--r--lib/active_storage/service/s3_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/active_storage/service/s3_service.rb b/lib/active_storage/service/s3_service.rb
index 811321a172..c94f5ddc63 100644
--- a/lib/active_storage/service/s3_service.rb
+++ b/lib/active_storage/service/s3_service.rb
@@ -52,7 +52,7 @@ class ActiveStorage::Service::S3Service < ActiveStorage::Service
def stream(key, options = {}, &block)
object = object_for(key)
- chunk_size = 5242880 # 5 megabytes
+ chunk_size = 5.megabytes
offset = 0
while offset < object.content_length