demarches-normaliennes/app/helpers/archive_helper.rb

6 lines
153 B
Ruby
Raw Normal View History

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