aboutsummaryrefslogtreecommitdiffstats
path: root/lib/active_storage/service.rb
diff options
context:
space:
mode:
authorJeremy Daer <jeremydaer@gmail.com>2017-07-09 03:19:55 -0700
committerJeremy Daer <jeremydaer@gmail.com>2017-07-09 03:19:58 -0700
commit1a17cfb9d9719c8458fb1259371c173627b96d8f (patch)
tree8b25775009d2012bffb8eb0cfa566e0313d22bd1 /lib/active_storage/service.rb
parentf7f864c6f422774f42b009c0ab790a51ca1a0f3b (diff)
downloadrails-1a17cfb9d9719c8458fb1259371c173627b96d8f.tar.gz
rails-1a17cfb9d9719c8458fb1259371c173627b96d8f.tar.bz2
rails-1a17cfb9d9719c8458fb1259371c173627b96d8f.zip
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.
Diffstat (limited to 'lib/active_storage/service.rb')
-rw-r--r--lib/active_storage/service.rb4
1 files changed, 2 insertions, 2 deletions
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)