Eager load procedure: :groupe_instructeurs for export

This commit is contained in:
simon lehericey 2019-09-19 12:20:23 +02:00
parent a2f82ab8be
commit faddbc23ef

View file

@ -126,7 +126,8 @@ class Dossier < ApplicationRecord
champs_private: { champs_private: {
etablissement: :champ, etablissement: :champ,
type_de_champ: :drop_down_list type_de_champ: :drop_down_list
} },
procedure: :groupe_instructeurs
).order(en_construction_at: 'asc') ).order(en_construction_at: 'asc')
} }
scope :en_cours, -> { not_archived.state_en_construction_ou_instruction } scope :en_cours, -> { not_archived.state_en_construction_ou_instruction }