[#3477] Remove extraneous variable
This commit is contained in:
parent
4646e10864
commit
c9ad2995f1
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue