[#3477] Remove extraneous variable

This commit is contained in:
Frederic Merizen 2019-02-27 16:28:31 +01:00 committed by Frederic Merizen
parent 4646e10864
commit c9ad2995f1

View file

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