mirror of
https://github.com/internetee/registry.git
synced 2025-07-30 14:36:22 +02:00
Replace some hardcoded schema paths for method calls
This commit is contained in:
parent
a0d0ce3e00
commit
00a0be2341
59 changed files with 481 additions and 480 deletions
|
@ -7,8 +7,9 @@ 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'
|
||||
|
||||
xml.value("xmlns:#{model_name}" => "https://epp.tld.ee/schema/#{model_name}-eis-1.0.xsd") do
|
||||
xml.value("xmlns:#{model_name}" => Xsd::Schema.filename(for_prefix: prefix)) do
|
||||
value = x[:value][:val]
|
||||
attrs = {}
|
||||
attrs["s"] = value if x[:value][:obj] == "status"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue