instructeurs can create and download archives

This commit is contained in:
Christophe Robillard 2021-03-30 10:46:21 +02:00
parent 609a1aa45b
commit 8b2849408c
10 changed files with 229 additions and 0 deletions

View file

@ -0,0 +1,5 @@
module ArchiveHelper
def can_generate_archive?(dossiers_termines, poids_total)
dossiers_termines.count < 100 && poids_total < 1.gigabyte
end
end