diff options
Diffstat (limited to 'lib/active_storage/service')
-rw-r--r-- | lib/active_storage/service/s3_service.rb | 2 |
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 fd8ef6e9a6..b4d0ed4bee 100644 --- a/lib/active_storage/service/s3_service.rb +++ b/lib/active_storage/service/s3_service.rb @@ -48,7 +48,7 @@ class ActiveStorage::Service::S3Service < ActiveStorage::Service offset = 0 while offset < object.content_length - yield object.read(options.merge(:range => "bytes=#{offset}-#{offset + chunk_size - 1}")) + yield object.read(options.merge(range: "bytes=#{offset}-#{offset + chunk_size - 1}")) offset += chunk_size end end |