Remove dead code
This commit is contained in:
parent
1a41a068ec
commit
df7e0a9881
17 changed files with 2 additions and 317 deletions
|
@ -15,23 +15,6 @@ class PiecesJustificativesService
|
|||
.compact()
|
||||
end
|
||||
|
||||
def self.upload_one!(dossier, user, params)
|
||||
content = params[:piece_justificative][:content]
|
||||
if ClamavService.safe_file?(content.path)
|
||||
pj = PieceJustificative.new(content: content,
|
||||
dossier: dossier,
|
||||
type_de_piece_justificative: nil,
|
||||
user: user)
|
||||
|
||||
pj.save
|
||||
else
|
||||
pj = PieceJustificative.new
|
||||
pj.errors.add(:content, "#{content.original_filename} : <b>Virus détecté !!</b>")
|
||||
end
|
||||
|
||||
pj
|
||||
end
|
||||
|
||||
def self.save_pj(content, dossier, tpj, user)
|
||||
pj = PieceJustificative.new(content: content,
|
||||
dossier: dossier,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue