Add support for remote OVH cloud storage

This commit is contained in:
Guillaume Lazzara 2016-05-13 16:08:51 +02:00
parent b15c2bbb2b
commit 833d7790c2
53 changed files with 243518 additions and 126 deletions

View file

@ -10,8 +10,12 @@ class Cerfa < ActiveRecord::Base
end
def content_url
unless content.url.nil?
(Downloader.new content, 'CERFA').url
if Features.remote_storage and !content.url.nil?
(RemoteDownloader.new content.filename).url
else
unless content.url.nil?
(LocalDownloader.new content, 'CERFA').url
end
end
end
end