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

@ -26,7 +26,7 @@ module ProcedureHelper
if logo.blank?
ActionController::Base.helpers.image_url("marianne.svg")
else
if Flipflop.remote_storage?
if Rails.application.secrets.fog[:enabled]
RemoteDownloader.new(logo.filename).url
else
LocalDownloader.new(logo.path, 'logo').url