refactor(export/archives): holds user profile asking for the archive or export
This commit is contained in:
parent
4dfb3b86ef
commit
72a3f6e89c
18 changed files with 51 additions and 17 deletions
|
@ -13,7 +13,7 @@ module Instructeurs
|
|||
|
||||
def create
|
||||
type = params[:type]
|
||||
archive = Archive.find_or_create_archive(type, year_month, groupe_instructeurs)
|
||||
archive = Archive.find_or_create_archive(type, year_month, groupe_instructeurs, current_instructeur)
|
||||
if archive.pending?
|
||||
ArchiveCreationJob.perform_later(@procedure, archive, current_instructeur)
|
||||
flash[:notice] = "Votre demande a été prise en compte. Selon le nombre de dossiers, cela peut prendre de quelques minutes à plusieurs heures. Vous recevrez un courriel lorsque le fichier sera disponible."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue