Use active storage load hook to extend blob
This commit is contained in:
parent
d5f54de0a0
commit
42235e81b1
7 changed files with 58 additions and 40 deletions
|
@ -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 }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue