Improve readability

This commit is contained in:
Artur Beljajev 2018-12-18 15:09:35 +02:00
parent ca1c9614e5
commit 1bbf7e73d0
2 changed files with 10 additions and 6 deletions

View file

@ -53,7 +53,8 @@ module Api
if disclosed_attributes
if contact.org?
error_msg = "Legal person's data cannot be concealed. Please remove this parameter."
error_msg = "Legal person's data is visible by default and cannot be concealed." \
' Please remove this parameter.'
render json: { errors: [{ disclosed_attributes: [error_msg] }] }, status: :bad_request
return
end