Stop using Flipflop as switch for Fog

This commit is contained in:
Paul Chavard 2019-07-31 12:25:40 +02:00
parent 6f3fde21f2
commit 25db21467d
10 changed files with 13 additions and 22 deletions

View file

@ -52,7 +52,7 @@ class Commentaire < ApplicationRecord
if piece_jointe.virus_scanner.safe?
Rails.application.routes.url_helpers.url_for(piece_jointe)
end
elsif Flipflop.remote_storage?
elsif Rails.application.secrets.fog[:enabled]
RemoteDownloader.new(file.path).url
elsif file&.url
# FIXME: this is horrible but used only in dev and will be removed after migration