Skip to content

Commit 7db1dca

Browse files
committed
Switch back to the existing config for backward compatibility
1 parent 208b475 commit 7db1dca

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/active_storage/service/azure_blob_service.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ module ActiveStorage
3535
class Service::AzureBlobService < Service
3636
attr_reader :client, :container, :signer
3737

38-
def initialize(storage_account_name:, storage_access_key: nil, container:, host: nil, public: false, **options)
38+
def initialize(storage_account_name:, storage_access_key: nil, container:, storage_blob_host: nil, public: false, **options)
3939
@container = container
4040
@public = public
4141
@client = AzureBlob::Client.new(
4242
account_name: storage_account_name,
4343
access_key: storage_access_key,
4444
container: container,
45-
host:,
45+
host: storage_blob_host,
4646
**options)
4747
end
4848

test/rails/service/configurations.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ DEFAULT: &default
33
storage_account_name: <%= ENV["AZURE_ACCOUNT_NAME"] %>
44
storage_access_key: <%= ENV["AZURE_ACCESS_KEY"] %>
55
principal_id: <%= ENV["AZURE_PRINCIPAL_ID"]%>
6-
host: <%= ENV["STORAGE_BLOB_HOST"] %>
6+
storage_blob_host: <%= ENV["STORAGE_BLOB_HOST"] %>
77

88
azure:
99
<<: *default

0 commit comments

Comments
 (0)