eager load procedure logo

This commit is contained in:
simon lehericey 2021-04-21 22:02:40 +02:00
parent acf078c726
commit 951d4c0025

View file

@ -251,7 +251,9 @@ module Instructeurs
end
def procedure
Procedure.find(procedure_id)
Procedure
.with_attached_logo
.find(procedure_id)
end
def ensure_ownership!