diff options
author | George Claghorn <george.claghorn@gmail.com> | 2017-07-06 12:15:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-06 12:15:01 -0400 |
commit | 1378bbfcfb56f02dab3fab3e87a9c3ed007e7fd9 (patch) | |
tree | b72d9c1503936c86a9929f6eb97abacf41df0612 /lib | |
parent | fbeec41e56e3767baf0810f7a0bed46e050a8044 (diff) | |
parent | ef3cdc82dae29c2d0bcc3a0832e0476015266ed6 (diff) | |
download | rails-1378bbfcfb56f02dab3fab3e87a9c3ed007e7fd9.tar.gz rails-1378bbfcfb56f02dab3fab3e87a9c3ed007e7fd9.tar.bz2 rails-1378bbfcfb56f02dab3fab3e87a9c3ed007e7fd9.zip |
Merge pull request #4 from snuggs/patch-1
Fix hash usage consistency.
Diffstat (limited to 'lib')
-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 |