Browse Source

feat: initialize constants in correct order and correct key conditional

pull/2089/head
natdeanlewissoftwire 2 years ago
parent
commit
768b292f16
  1. 10
      app/services/csv/lettings_log_csv_service.rb

10
app/services/csv/lettings_log_csv_service.rb

@ -245,11 +245,11 @@ module Csv
}.freeze }.freeze
LABELS = { LABELS = {
"lettype": LETTYPE_LABELS, "lettype" => LETTYPE_LABELS,
"irproduct": IRPRODUCT_LABELS, "irproduct" => IRPRODUCT_LABELS,
"lar": LAR_LABELS, "lar" => LAR_LABELS,
"newprop": NEWPROP_LABELS, "newprop" => NEWPROP_LABELS,
"incref": INCREF_LABELS, "incref" => INCREF_LABELS,
}.freeze }.freeze
CONVENTIONAL_YES_NO_ATTRIBUTES = %w[illness_type_1 illness_type_2 illness_type_3 illness_type_4 illness_type_5 illness_type_6 illness_type_7 illness_type_8 illness_type_9 illness_type_10 refused cbl cap chr letting_allocation_none housingneeds_a housingneeds_b housingneeds_c housingneeds_d housingneeds_e housingneeds_f housingneeds_g housingneeds_h has_benefits nocharge].freeze CONVENTIONAL_YES_NO_ATTRIBUTES = %w[illness_type_1 illness_type_2 illness_type_3 illness_type_4 illness_type_5 illness_type_6 illness_type_7 illness_type_8 illness_type_9 illness_type_10 refused cbl cap chr letting_allocation_none housingneeds_a housingneeds_b housingneeds_c housingneeds_d housingneeds_e housingneeds_f housingneeds_g housingneeds_h has_benefits nocharge].freeze

Loading…
Cancel
Save