Use active storage load hook to extend blob

This commit is contained in:
Paul Chavard 2019-05-16 18:59:34 +02:00
parent d5f54de0a0
commit 42235e81b1
7 changed files with 58 additions and 40 deletions

View file

@ -10,7 +10,7 @@ describe ChampSerializer do
before do
champ.piece_justificative_file.attach({ filename: __FILE__, io: File.open(__FILE__) })
champ.piece_justificative_file.virus_scanner.analyze_later
champ.piece_justificative_file.blob.send(:enqueue_virus_scan)
end
after { champ.piece_justificative_file.purge }