Use Flipflop instead of Feature

This commit is contained in:
Paul Chavard 2018-04-18 12:24:37 +02:00
parent 7dd0611a28
commit 45019ce75c
22 changed files with 46 additions and 44 deletions

View file

@ -18,7 +18,7 @@ class Commentaire < ApplicationRecord
end
def file_url
if Features.remote_storage
if Flipflop.remote_storage?
RemoteDownloader.new(file.path).url
else
file.url