aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/lib/active_storage/service/gcs_service.rb
diff options
context:
space:
mode:
authorGeorge Claghorn <george.claghorn@gmail.com>2017-08-20 18:09:44 -0400
committerGeorge Claghorn <george.claghorn@gmail.com>2017-08-20 18:09:44 -0400
commit376dd5c0011214309d984c9a1e98958e2bc46c48 (patch)
treeb997a3eadb8760d1fbd35efa4c2308adef08185c /activestorage/lib/active_storage/service/gcs_service.rb
parent8bd14971b908b7d3c7b41a715d2904df88ee7b3c (diff)
downloadrails-376dd5c0011214309d984c9a1e98958e2bc46c48.tar.gz
rails-376dd5c0011214309d984c9a1e98958e2bc46c48.tar.bz2
rails-376dd5c0011214309d984c9a1e98958e2bc46c48.zip
DRY
Diffstat (limited to 'activestorage/lib/active_storage/service/gcs_service.rb')
-rw-r--r--activestorage/lib/active_storage/service/gcs_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activestorage/lib/active_storage/service/gcs_service.rb b/activestorage/lib/active_storage/service/gcs_service.rb
index e656f2c69f..ebf24a36d7 100644
--- a/activestorage/lib/active_storage/service/gcs_service.rb
+++ b/activestorage/lib/active_storage/service/gcs_service.rb
@@ -47,10 +47,10 @@ module ActiveStorage
end
end
- def url(key, expires_in:, disposition:, filename:, content_type:)
+ def url(key, expires_in:, filename:, content_type:, disposition:)
instrument :url, key do |payload|
generated_url = file_for(key).signed_url expires: expires_in, query: {
- "response-content-disposition" => "#{disposition}; filename=\"#{filename}\"",
+ "response-content-disposition" => disposition,
"response-content-type" => content_type
}