Remove N+1 query on Dossier#show
This commit is contained in:
parent
7203dead28
commit
9bc5545bdd
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@
|
|||
= render partial: "identite_individual", locals: { individual: @dossier.individual }
|
||||
|
||||
.accompagnateur-title Formulaire
|
||||
- champs = @dossier.ordered_champs.decorate
|
||||
- champs = @dossier.ordered_champs.includes(:type_de_champ).decorate
|
||||
- if champs.any?
|
||||
.card
|
||||
= render partial: "champs", locals: { champs: champs }
|
||||
|
|
Loading…
Reference in a new issue