aboutsummaryrefslogtreecommitdiffstats
path: root/lib/active_vault/site
diff options
context:
space:
mode:
authorGeorge Claghorn <george@basecamp.com>2017-07-05 18:31:19 -0400
committerGeorge Claghorn <george@basecamp.com>2017-07-05 18:31:19 -0400
commit5869045f2e71f0abdf3add19629d23a46b9fff0d (patch)
tree809d0e3f4601b6d093113242ba2b20159b2e5f0c /lib/active_vault/site
parentabda6d784eb0940b352cd28c28a3f3e87757a489 (diff)
downloadrails-5869045f2e71f0abdf3add19629d23a46b9fff0d.tar.gz
rails-5869045f2e71f0abdf3add19629d23a46b9fff0d.tar.bz2
rails-5869045f2e71f0abdf3add19629d23a46b9fff0d.zip
ActiveVault::Site::MirrorSite#url
Diffstat (limited to 'lib/active_vault/site')
-rw-r--r--lib/active_vault/site/mirror_site.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/active_vault/site/mirror_site.rb b/lib/active_vault/site/mirror_site.rb
index 62b2f20586..8a2fa52fcb 100644
--- a/lib/active_vault/site/mirror_site.rb
+++ b/lib/active_vault/site/mirror_site.rb
@@ -9,7 +9,7 @@ class ActiveVault::Site::MirrorSite < ActiveVault::Site
sites.collect do |site|
site.upload key, io
io.rewind
- end
+ end
end
def download(key)
@@ -25,6 +25,10 @@ class ActiveVault::Site::MirrorSite < ActiveVault::Site
end
+ def url(key, **options)
+ primary_site.url(key, **options)
+ end
+
def byte_size(key)
primary_site.byte_size(key)
end
@@ -42,6 +46,6 @@ class ActiveVault::Site::MirrorSite < ActiveVault::Site
# FIXME: Convert to be threaded
sites.collect do |site|
site.public_send method, *args
- end
+ end
end
end