Add support for remote OVH cloud storage
This commit is contained in:
parent
b15c2bbb2b
commit
833d7790c2
53 changed files with 243518 additions and 126 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue