refactor(exports): drop useless exports relation dependency for exports dropdown

Since the dropdown does not list download links anymore,
we don't have to pass them a dynamic exports list.

Co-Authored-By: Lisa Durand <lisa.c.durand@gmail.com>
This commit is contained in:
Colin Darie 2023-09-13 13:01:57 +02:00
parent 82dd05c189
commit fc66f4b05d
No known key found for this signature in database
GPG key ID: 8C76CADD40253590
8 changed files with 14 additions and 42 deletions

View file

@ -6,7 +6,6 @@ module Administrateurs
def download
export = Export.find_or_create_export(export_format, all_groupe_instructeurs, force: force_export?, **export_options)
@dossiers_count = export.count
assign_exports
if export.available?
respond_to do |format|
@ -53,9 +52,5 @@ module Administrateurs
def all_groupe_instructeurs
@procedure.groupe_instructeurs
end
def assign_exports
@exports = Export.find_for_groupe_instructeurs(all_groupe_instructeurs.map(&:id), nil)
end
end
end