mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 19:48:28 +02:00
Strory#118822101 - update how schema is generated
This commit is contained in:
parent
f733180f7f
commit
bfc47fa21e
2 changed files with 3 additions and 3 deletions
|
@ -7,10 +7,10 @@ xml.epp_head do
|
|||
xml.value('xmlns:obj' => 'urn:ietf:params:xml:ns:obj') do
|
||||
if (val = x[:value][:val]).respond_to?(:each)
|
||||
val.each do |el|
|
||||
xml.tag!("obj:#{x[:value][:obj]}", el)
|
||||
xml.tag!("#{controller.controller_name}:#{x[:value][:obj]}", el)
|
||||
end
|
||||
else
|
||||
xml.tag!("obj:#{x[:value][:obj]}", val)
|
||||
xml.tag!("#{controller.controller_name}:#{x[:value][:obj]}", val)
|
||||
end
|
||||
end if x[:value]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue