demarches-normaliennes/app/helpers/archive_helper.rb
2021-04-29 17:29:47 +02:00

5 lines
153 B
Ruby

module ArchiveHelper
def can_generate_archive?(dossiers_termines, poids_total)
dossiers_termines.count < 100 && poids_total < 1.gigabyte
end
end