Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
maleblond committed Jun 16, 2021
1 parent e3fe392 commit a22710e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions activestorage/lib/active_storage/service/gcs_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,14 @@ def url_for_direct_upload(key, expires_in:, checksum:, **)
version = :v4
end

generated_url = bucket.signed_url(key, method: "PUT", expires: expires_in, content_md5: checksum,
headers: headers, version: version)
generated_url = bucket.signed_url(key,
content_md5: checksum,
expires: expires_in,
headers: headers,
method: "PUT",
version: version
)

payload[:url] = generated_url

generated_url
Expand Down

0 comments on commit a22710e

Please sign in to comment.