perf: editor public 250 queries -> 15 queries
This commit is contained in:
parent
cc841e49ad
commit
9cfa6205b5
1 changed files with 4 additions and 0 deletions
|
@ -289,6 +289,10 @@ module Administrateurs
|
|||
redirect_to admin_procedure_experts_path(@procedure)
|
||||
end
|
||||
|
||||
def champs
|
||||
@procedure = Procedure.includes(draft_revision: { revision_types_de_champ_public: :type_de_champ }).find(@procedure.id)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def apercu_tab
|
||||
|
|
Loading…
Add table
Reference in a new issue