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:
parent
82bfe3bf11
commit
eba7f85867
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue