mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 11:38:30 +02:00
118822101-builder_changes_for_array_error
(cherry picked from commit e7841b5
)
This commit is contained in:
parent
0e4a03517f
commit
436846cfe9
2 changed files with 8 additions and 2 deletions
|
@ -12,7 +12,13 @@ xml.epp_head do
|
|||
|
||||
if (val = value).respond_to?(:each)
|
||||
val.each do |el|
|
||||
xml.tag!("#{model_name}:#{x[:value][:obj]}", el, attrs)
|
||||
if el.kind_of?(Array)
|
||||
xml.tag!("#{model_name}:#{x[:value][:obj]}") do
|
||||
xml.tag!("#{model_name}:#{el[0]}", el[1], attrs)
|
||||
end
|
||||
else
|
||||
xml.tag!("#{model_name}:#{x[:value][:obj]}", el, attrs)
|
||||
end
|
||||
end
|
||||
else
|
||||
xml.tag!("#{model_name}:#{x[:value][:obj]}", val, attrs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue