From 79573b3afffafc070ec1eecf8c47678bbdae60c7 Mon Sep 17 00:00:00 2001 From: George Claghorn Date: Mon, 6 Aug 2018 22:23:47 -0400 Subject: Camelize instead of classifying Avoid mangling service names that end in S: "GCS".classify # => "GC" "GCS".camelize # => "GCS" --- activestorage/lib/active_storage/service/configurator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activestorage/lib') diff --git a/activestorage/lib/active_storage/service/configurator.rb b/activestorage/lib/active_storage/service/configurator.rb index 32fa9105c6..fa80c66c3b 100644 --- a/activestorage/lib/active_storage/service/configurator.rb +++ b/activestorage/lib/active_storage/service/configurator.rb @@ -26,7 +26,7 @@ module ActiveStorage def resolve(class_name) require "active_storage/service/#{class_name.to_s.underscore}_service" - ActiveStorage::Service.const_get(:"#{class_name.classify}Service") + ActiveStorage::Service.const_get(:"#{class_name.camelize}Service") rescue LoadError raise "Missing service adapter for #{class_name.inspect}" end -- cgit v1.2.3