1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

GCS service: skip unnecessary bucket lookups

This commit is contained in:
George Claghorn 2019-03-14 10:56:41 -04:00
parent b9eda0049e
commit 43fc7b476b

View file

@ -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