demarches-normaliennes/app/helpers/archive_helper.rb
2021-04-28 11:40:58 +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