From 858bbde2d6a311099426af3573bcdc31d7027bf9 Mon Sep 17 00:00:00 2001 From: Christophe Robillard Date: Mon, 8 Mar 2021 11:35:34 +0100 Subject: [PATCH] remove dead code --- app/lib/active_storage/downloadable_file.rb | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/app/lib/active_storage/downloadable_file.rb b/app/lib/active_storage/downloadable_file.rb index 620f1ca0d..db86efc73 100644 --- a/app/lib/active_storage/downloadable_file.rb +++ b/app/lib/active_storage/downloadable_file.rb @@ -1,16 +1,4 @@ class ActiveStorage::DownloadableFile - def initialize(attached) - if using_local_backend? - @url = 'file://' + ActiveStorage::Blob.service.path_for(attached.key) - else - @url = attached.service_url - end - end - - def url - @url - end - def self.create_list_from_dossier(dossier) pjs = PiecesJustificativesService.liste_pieces_justificatives(dossier) files = pjs.map do |piece_justificative|