diff options
Diffstat (limited to 'lib/active_storage/service')
-rw-r--r-- | lib/active_storage/service/mirror_service.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/active_storage/service/mirror_service.rb b/lib/active_storage/service/mirror_service.rb index eec1f2af65..8a51a75684 100644 --- a/lib/active_storage/service/mirror_service.rb +++ b/lib/active_storage/service/mirror_service.rb @@ -6,10 +6,10 @@ class ActiveStorage::Service::MirrorService < ActiveStorage::Service delegate :download, :exist?, :url, to: :primary # Stitch together from named configuration. - def self.build(mirror_config, all_configurations) #:nodoc: - primary = ActiveStorage::Service.configure(mirror_config.fetch(:primary), all_configurations) + def self.build(service_config, all_configurations) #:nodoc: + primary = ActiveStorage::Service.configure(service_config.fetch(:primary), all_configurations) - mirrors = mirror_config.fetch(:mirrors).collect do |service_name| + mirrors = service_config.fetch(:mirrors).collect do |service_name| ActiveStorage::Service.configure(service_name.to_sym, all_configurations) end |