mirror of
https://github.com/internetee/registry.git
synced 2025-07-20 09:46:09 +02:00
Improve readability
This commit is contained in:
parent
ca1c9614e5
commit
1bbf7e73d0
2 changed files with 10 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue