include type_de_champ
Avoid n+1 when matching champ.stable_id in procedure.presentation.displayed_fields_values win 2s in the worst 3s scenario
This commit is contained in:
parent
f6c704d44d
commit
e728a3fcb7
1 changed files with 2 additions and 2 deletions
|
@ -177,9 +177,9 @@ class ProcedurePresentation < ApplicationRecord
|
|||
.map do |table|
|
||||
case table
|
||||
when 'type_de_champ'
|
||||
:champs
|
||||
{ champs: :type_de_champ }
|
||||
when 'type_de_champ_private'
|
||||
:champs_private
|
||||
{ champs_private: :type_de_champ }
|
||||
else
|
||||
table
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue