Fix champ->type_de_champ n+1

This commit is contained in:
Paul Chavard 2020-11-12 15:48:31 +01:00
parent 10093f9150
commit e74c32446e

View file

@ -78,7 +78,7 @@ module Types
end
def champs
Loaders::Association.for(object.class, :champs).load(object)
Loaders::Association.for(object.class, champs: [:type_de_champ]).load(object)
end
def annotations