From d3f92261902d09adf54dbc211e3a1080d943440b Mon Sep 17 00:00:00 2001 From: Abhay Nikam Date: Wed, 13 Feb 2019 23:29:48 +0530 Subject: Delegated path_for to primary in the MirrorService --- activestorage/lib/active_storage/service/mirror_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activestorage/lib/active_storage/service/mirror_service.rb') diff --git a/activestorage/lib/active_storage/service/mirror_service.rb b/activestorage/lib/active_storage/service/mirror_service.rb index 75274f81b3..aa41df304e 100644 --- a/activestorage/lib/active_storage/service/mirror_service.rb +++ b/activestorage/lib/active_storage/service/mirror_service.rb @@ -9,7 +9,7 @@ module ActiveStorage class Service::MirrorService < Service attr_reader :primary, :mirrors - delegate :download, :download_chunk, :exist?, :url, to: :primary + delegate :download, :download_chunk, :exist?, :url, :path_for, to: :primary # Stitch together from named services. def self.build(primary:, mirrors:, configurator:, **options) #:nodoc: -- cgit v1.2.3