Fix: Update contact validation messages (#3500)

Fixes #3476
This commit is contained in:
thedev105
2021-12-03 10:49:11 +03:00
committed by GitHub
parent d7cfe6858e
commit 6d378eb206
8 changed files with 32 additions and 29 deletions

View File

@@ -37,7 +37,8 @@ module RequestExceptionHandler
def render_record_invalid(exception)
render json: {
message: exception.record.errors.full_messages.join(', ')
message: exception.record.errors.full_messages.join(', '),
attributes: exception.record.errors.attribute_names
}, status: :unprocessable_entity
end