diff options
author | George Claghorn <george@basecamp.com> | 2017-07-05 18:31:19 -0400 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2017-07-05 18:31:19 -0400 |
commit | 5869045f2e71f0abdf3add19629d23a46b9fff0d (patch) | |
tree | 809d0e3f4601b6d093113242ba2b20159b2e5f0c /lib/active_vault/site | |
parent | abda6d784eb0940b352cd28c28a3f3e87757a489 (diff) | |
download | rails-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.rb | 8 |
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 |