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

Accept GCS client options

This commit is contained in:
George Claghorn 2017-09-01 23:12:42 -04:00
parent 82bfe3bf11
commit eba7f85867

View file

@ -9,8 +9,8 @@ module ActiveStorage
class Service::GCSService < Service
attr_reader :client, :bucket
def initialize(project:, keyfile:, bucket:)
@client = Google::Cloud::Storage.new(project: project, keyfile: keyfile)
def initialize(project:, keyfile:, bucket:, **options)
@client = Google::Cloud::Storage.new(project: project, keyfile: keyfile, **options)
@bucket = @client.bucket(bucket)
end