mirror of
https://github.com/internetee/registry.git
synced 2025-07-20 09:46:09 +02:00
refactoring
This commit is contained in:
parent
9e8f760fc4
commit
2b575cdae1
2 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ xml.epp_head do
|
|||
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
|
||||
prefix = model_name == 'poll' ? 'changePoll' : model_name + '-eis'
|
||||
prefix = model_name == 'poll' ? 'changePoll' : model_name + '-ee'
|
||||
|
||||
xml.value("xmlns:#{model_name}" => Xsd::Schema.filename(for_prefix: prefix)) do
|
||||
value = x[:value][:val]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue