mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 19:48:28 +02:00
Add epp errors tto the concern itself
This commit is contained in:
parent
d4775ba5c5
commit
e15fed2cd0
5 changed files with 19 additions and 7 deletions
|
@ -2,7 +2,7 @@ xml.epp_head do
|
|||
xml.response do
|
||||
@errors.each do |error|
|
||||
x = error&.options
|
||||
next if x.empty?
|
||||
next if x.empty? || x == { value: nil }
|
||||
xml.result('code' => x[:code]) do
|
||||
xml.msg(x[:msg], 'lang' => 'en')
|
||||
model_name = resource ? resource.model_name.singular.sub('epp_','') : controller.controller_name.singularize
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue