[#3477] We only use the table anyway

This commit is contained in:
Frederic Merizen 2019-02-27 16:30:19 +01:00 committed by Frederic Merizen
parent c9ad2995f1
commit 7d09624bbe

View file

@ -139,8 +139,8 @@ class ProcedurePresentation < ApplicationRecord
def eager_load_displayed_fields(dossiers)
relations_to_include = displayed_fields
.reject { |field| field['table'] == 'self' }
.pluck('table')
.reject { |table| table == 'self' }
.map do |table|
case table
when 'type_de_champ'