aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/lib/active_storage/service/configurator.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activestorage/lib/active_storage/service/configurator.rb')
-rw-r--r--activestorage/lib/active_storage/service/configurator.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/activestorage/lib/active_storage/service/configurator.rb b/activestorage/lib/active_storage/service/configurator.rb
index 39951fd026..fa80c66c3b 100644
--- a/activestorage/lib/active_storage/service/configurator.rb
+++ b/activestorage/lib/active_storage/service/configurator.rb
@@ -26,7 +26,9 @@ module ActiveStorage
def resolve(class_name)
require "active_storage/service/#{class_name.to_s.underscore}_service"
- ActiveStorage::Service.const_get(:"#{class_name}Service")
+ ActiveStorage::Service.const_get(:"#{class_name.camelize}Service")
+ rescue LoadError
+ raise "Missing service adapter for #{class_name.inspect}"
end
end
end