Add handling of PaperTrail.whodunnit to Registrant API controllers

This commit is contained in:
Maciej Szlosarczyk 2018-08-17 13:31:53 +03:00
parent 07072ec6cb
commit 3ee5291b57
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
4 changed files with 23 additions and 12 deletions

View file

@ -17,7 +17,7 @@ module Api
if @domain.remove_registry_lock
render json: @domain
else
render json: { errors: [{ base: ['Domain cannot be unlocked'] }] },
render json: { errors: [{ base: ['Domain not locked'] }] },
status: :unprocessable_entity
end
end