Browse Source

Rubocop

pull/84/head
baarkerlounger 4 years ago
parent
commit
c02a3d0923
  1. 6
      app/models/bulk_upload.rb
  2. 1
      config/routes.rb

6
app/models/bulk_upload.rb

@ -33,10 +33,10 @@ class BulkUpload
def valid_content_type?
if SPREADSHEET_CONTENT_TYPES.include?(@content_type)
return true
true
else
errors.add(:case_log_bulk_upload, "Invalid file type")
return false
false
end
end
@ -181,7 +181,7 @@ class BulkUpload
# data_protection: row[132],
sale_or_letting: "letting",
gdpr_acceptance: 1,
gdpr_declined: 0
gdpr_declined: 0,
# armed_forces_partner: "",
# tenant_same_property_renewal: "",
# needs_type: "",

1
config/routes.rb

@ -23,6 +23,5 @@ Rails.application.routes.draw do
form.all_subsections.keys.map do |subsection|
get "#{subsection}/check_answers", to: "case_logs#check_answers"
end
end
end

Loading…
Cancel
Save