Browse Source

lint

pull/2763/head
Kat 9 months ago
parent
commit
c74f4caea5
  1. 2
      app/models/validations/sales/property_validations.rb

2
app/models/validations/sales/property_validations.rb

@ -36,7 +36,7 @@ module Validations::Sales::PropertyValidations
record.errors.add :postcode_full, :wrong_format, message: error_message record.errors.add :postcode_full, :wrong_format, message: error_message
end end
end end
def validate_la_in_england(record) def validate_la_in_england(record)
return unless record.form.start_year_2025_or_later? && record.la.present? return unless record.form.start_year_2025_or_later? && record.la.present?
return if record.la.in?(LocalAuthority.england.pluck(:code)) return if record.la.in?(LocalAuthority.england.pluck(:code))

Loading…
Cancel
Save