aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/lib/active_storage/service
diff options
context:
space:
mode:
authorDino Maric <dino.onex@gmail.com>2017-08-05 00:57:02 +0200
committerDavid Heinemeier Hansson <david@loudthinking.com>2017-08-04 17:57:02 -0500
commit3179f089be4f631b9c0f8b431567992164f2bdb4 (patch)
tree3df6f7a6901e3105f43173e725ce3f95d30b8e7b /activestorage/lib/active_storage/service
parentb9f0eb24ed6a86aec3881b43e6b0028a306465b2 (diff)
downloadrails-3179f089be4f631b9c0f8b431567992164f2bdb4.tar.gz
rails-3179f089be4f631b9c0f8b431567992164f2bdb4.tar.bz2
rails-3179f089be4f631b9c0f8b431567992164f2bdb4.zip
Rename Azure to AzureStorage (#30057)
Diffstat (limited to 'activestorage/lib/active_storage/service')
-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.rb2
2 files changed, 2 insertions, 2 deletions
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