mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 17:01:44 +02:00
fixed codeclimate errors (partically)
This commit is contained in:
parent
3f41ce4ab4
commit
f4e0084895
103 changed files with 339 additions and 367 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 + '-ee'
|
||||
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