Merge pull request #5883 from tchak/fix-n-queries

fix annotations n+1
This commit is contained in:
Paul Chavard 2021-02-08 11:11:59 +01:00 committed by GitHub
commit f17a593b03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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