aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage
diff options
context:
space:
mode:
authorgarytaylor <gary.taylor@hismessages.com>2019-02-04 14:08:55 +0000
committerGeorge Claghorn <george.claghorn@gmail.com>2019-02-04 09:08:55 -0500
commit457dfc0621c6009087a0af677a3bb62940c3cfab (patch)
treedad17aef5e7ab3644272f4a1a883f8a345d6e5e5 /activestorage
parent7d85d3847e33f879c50626a1a097ad4f5d7bf897 (diff)
downloadrails-457dfc0621c6009087a0af677a3bb62940c3cfab.tar.gz
rails-457dfc0621c6009087a0af677a3bb62940c3cfab.tar.bz2
rails-457dfc0621c6009087a0af677a3bb62940c3cfab.zip
Allow configuring the Azure Storage service with extra client options
Diffstat (limited to 'activestorage')
-rw-r--r--activestorage/lib/active_storage/service/azure_storage_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activestorage/lib/active_storage/service/azure_storage_service.rb b/activestorage/lib/active_storage/service/azure_storage_service.rb
index 17cecd891c..993cc0e5f7 100644
--- a/activestorage/lib/active_storage/service/azure_storage_service.rb
+++ b/activestorage/lib/active_storage/service/azure_storage_service.rb
@@ -10,8 +10,8 @@ module ActiveStorage
class Service::AzureStorageService < Service
attr_reader :client, :blobs, :container, :signer
- def initialize(storage_account_name:, storage_access_key:, container:)
- @client = Azure::Storage::Client.create(storage_account_name: storage_account_name, storage_access_key: storage_access_key)
+ def initialize(storage_account_name:, storage_access_key:, container:, **options)
+ @client = Azure::Storage::Client.create(storage_account_name: storage_account_name, storage_access_key: storage_access_key, **options)
@signer = Azure::Storage::Core::Auth::SharedAccessSignature.new(storage_account_name, storage_access_key)
@blobs = client.blob_client
@container = container