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:
parent
82dd05c189
commit
fc66f4b05d
8 changed files with 14 additions and 42 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue