Set STORAGE_URL during initialization
This commit is contained in:
parent
dfbd584b74
commit
aebc673cdc
3 changed files with 4 additions and 4 deletions
|
@ -1,11 +1,9 @@
|
|||
class RemoteDownloader
|
||||
DEST_URL = "https://storage.apientreprise.fr/" + CarrierWave::Uploader::Base.fog_directory + '/'
|
||||
|
||||
def initialize(filename)
|
||||
@filename = filename
|
||||
end
|
||||
|
||||
def url
|
||||
@url ||= File.join(DEST_URL, @filename)
|
||||
@url ||= File.join(STORAGE_URL, @filename)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue