diff options
author | Dino Maric <dino.onex@gmail.com> | 2017-08-05 00:57:02 +0200 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2017-08-04 17:57:02 -0500 |
commit | 3179f089be4f631b9c0f8b431567992164f2bdb4 (patch) | |
tree | 3df6f7a6901e3105f43173e725ce3f95d30b8e7b /activestorage/lib | |
parent | b9f0eb24ed6a86aec3881b43e6b0028a306465b2 (diff) | |
download | rails-3179f089be4f631b9c0f8b431567992164f2bdb4.tar.gz rails-3179f089be4f631b9c0f8b431567992164f2bdb4.tar.bz2 rails-3179f089be4f631b9c0f8b431567992164f2bdb4.zip |
Rename Azure to AzureStorage (#30057)
Diffstat (limited to 'activestorage/lib')
-rw-r--r-- | activestorage/lib/active_storage/service.rb | 2 | ||||
-rw-r--r-- | activestorage/lib/active_storage/service/azure_storage_service.rb (renamed from activestorage/lib/active_storage/service/azure_service.rb) | 2 | ||||
-rw-r--r-- | activestorage/lib/active_storage/service/configurator.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/activestorage/lib/active_storage/service.rb b/activestorage/lib/active_storage/service.rb index f6b4877759..4223295ed8 100644 --- a/activestorage/lib/active_storage/service.rb +++ b/activestorage/lib/active_storage/service.rb @@ -7,7 +7,7 @@ require "active_storage/log_subscriber" # * +Disk+, to manage attachments saved directly on the hard drive. # * +GCS+, to manage attachments through Google Cloud Storage. # * +S3+, to manage attachments through Amazon S3. -# * +Azure+, to manage attachments through Microsoft Azure Storage. +# * +AzureStorage+, to manage attachments through Microsoft Azure Storage. # * +Mirror+, to be able to use several services to manage attachments. # # Inside a Rails application, you can set-up your services through the diff --git a/activestorage/lib/active_storage/service/azure_service.rb b/activestorage/lib/active_storage/service/azure_storage_service.rb index a505b9a0ee..527dc57eeb 100644 --- a/activestorage/lib/active_storage/service/azure_service.rb +++ b/activestorage/lib/active_storage/service/azure_storage_service.rb @@ -4,7 +4,7 @@ require "azure/storage/core/auth/shared_access_signature" # Wraps the Microsoft Azure Storage Blob Service as a Active Storage service. # See `ActiveStorage::Service` for the generic API documentation that applies to all services. -class ActiveStorage::Service::AzureService < ActiveStorage::Service +class ActiveStorage::Service::AzureStorageService < ActiveStorage::Service attr_reader :client, :path, :blobs, :container, :signer def initialize(path:, storage_account_name:, storage_access_key:, container:) diff --git a/activestorage/lib/active_storage/service/configurator.rb b/activestorage/lib/active_storage/service/configurator.rb index 00ae24d251..a0afdaa912 100644 --- a/activestorage/lib/active_storage/service/configurator.rb +++ b/activestorage/lib/active_storage/service/configurator.rb @@ -22,7 +22,7 @@ class ActiveStorage::Service::Configurator #:nodoc: end def resolve(class_name) - require "active_storage/service/#{class_name.to_s.downcase}_service" + require "active_storage/service/#{class_name.to_s.underscore}_service" ActiveStorage::Service.const_get(:"#{class_name}Service") end end |