From ef3cdc82dae29c2d0bcc3a0832e0476015266ed6 Mon Sep 17 00:00:00 2001 From: Ra'Shaun Stovall Date: Thu, 6 Jul 2017 12:13:40 -0400 Subject: Fix hash usage consistency. Unless this was intentional, being consistent with: https://github.com/rails/activestorage/blob/master/lib/active_storage/service/s3_service.rb#L8 Just showin' a lil' <3 while perusing the repo @dhh --- lib/active_storage/service/s3_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/active_storage') 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 -- cgit v1.2.3