From 1a17cfb9d9719c8458fb1259371c173627b96d8f Mon Sep 17 00:00:00 2001 From: Jeremy Daer Date: Sun, 9 Jul 2017 03:19:55 -0700 Subject: Service: clarify Service.build arguments First arg is config for the service we're instantiating. Second arg is service configurations so we can look up and configure other services by name. --- lib/active_storage/service.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/active_storage/service.rb') diff --git a/lib/active_storage/service.rb b/lib/active_storage/service.rb index 1a6a55739f..6978ce6429 100644 --- a/lib/active_storage/service.rb +++ b/lib/active_storage/service.rb @@ -39,8 +39,8 @@ class ActiveStorage::Service # Override in subclasses that stitch together multiple services and hence # need to do additional lookups from configurations. See MirrorService. - def self.build(config, configurations) #:nodoc: - new(config) + def self.build(service_config, all_configurations) #:nodoc: + new(service_config) end def upload(key, io, checksum: nil) -- cgit v1.2.3