diff options
author | George Claghorn <george@basecamp.com> | 2019-03-14 10:56:41 -0400 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2019-03-14 10:56:41 -0400 |
commit | 43fc7b476b483a89dacf9964ccf288f6bc6e1595 (patch) | |
tree | 7b0c2e5b9834cfdaf583da07a45993dee8ceb080 /activestorage/lib | |
parent | b9eda0049ed5eaec10aa3d727efb77a93b0fc144 (diff) | |
download | rails-43fc7b476b483a89dacf9964ccf288f6bc6e1595.tar.gz rails-43fc7b476b483a89dacf9964ccf288f6bc6e1595.tar.bz2 rails-43fc7b476b483a89dacf9964ccf288f6bc6e1595.zip |
GCS service: skip unnecessary bucket lookups
Diffstat (limited to 'activestorage/lib')
-rw-r--r-- | activestorage/lib/active_storage/service/gcs_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activestorage/lib/active_storage/service/gcs_service.rb b/activestorage/lib/active_storage/service/gcs_service.rb index 9c20ed1d10..09abc613f3 100644 --- a/activestorage/lib/active_storage/service/gcs_service.rb +++ b/activestorage/lib/active_storage/service/gcs_service.rb @@ -131,7 +131,7 @@ module ActiveStorage end def bucket - @bucket ||= client.bucket(config.fetch(:bucket)) + @bucket ||= client.bucket(config.fetch(:bucket), skip_lookup: true) end def client |