|
|
@ -37,7 +37,6 @@ private |
|
|
|
|
|
|
|
|
|
|
|
def validate_postcode |
|
|
|
def validate_postcode |
|
|
|
unless postcode.match(Validations::PropertyValidations::POSTCODE_REGEXP) |
|
|
|
unless postcode.match(Validations::PropertyValidations::POSTCODE_REGEXP) |
|
|
|
debugger |
|
|
|
|
|
|
|
error_message = I18n.t("validations.postcode") |
|
|
|
error_message = I18n.t("validations.postcode") |
|
|
|
errors.add :postcode, error_message |
|
|
|
errors.add :postcode, error_message |
|
|
|
end |
|
|
|
end |
|
|
|