diff options
author | Abhay Nikam <nikam.abhay1@gmail.com> | 2019-02-13 23:29:48 +0530 |
---|---|---|
committer | Abhay Nikam <nikam.abhay1@gmail.com> | 2019-02-14 23:06:42 +0530 |
commit | d3f92261902d09adf54dbc211e3a1080d943440b (patch) | |
tree | 4a96d5e7b8045f9aa1dfcef0a1c7e2ab2600131b /activestorage/lib | |
parent | e53430fa9af239e21e11548499d814f540d421e5 (diff) | |
download | rails-d3f92261902d09adf54dbc211e3a1080d943440b.tar.gz rails-d3f92261902d09adf54dbc211e3a1080d943440b.tar.bz2 rails-d3f92261902d09adf54dbc211e3a1080d943440b.zip |
Delegated path_for to primary in the MirrorService
Diffstat (limited to 'activestorage/lib')
-rw-r--r-- | activestorage/lib/active_storage/service/mirror_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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: |