aboutsummaryrefslogtreecommitdiffstats
path: root/lib/active_storage
diff options
context:
space:
mode:
authorRa'Shaun Stovall <rashaunstovall@gmail.com>2017-07-06 12:13:40 -0400
committerGitHub <noreply@github.com>2017-07-06 12:13:40 -0400
commitef3cdc82dae29c2d0bcc3a0832e0476015266ed6 (patch)
treeb72d9c1503936c86a9929f6eb97abacf41df0612 /lib/active_storage
parentfbeec41e56e3767baf0810f7a0bed46e050a8044 (diff)
downloadrails-ef3cdc82dae29c2d0bcc3a0832e0476015266ed6.tar.gz
rails-ef3cdc82dae29c2d0bcc3a0832e0476015266ed6.tar.bz2
rails-ef3cdc82dae29c2d0bcc3a0832e0476015266ed6.zip
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
Diffstat (limited to 'lib/active_storage')
-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 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