mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 12:08:27 +02:00
fixed codeclimate errors (partically)
This commit is contained in:
parent
3f41ce4ab4
commit
f4e0084895
103 changed files with 339 additions and 367 deletions
|
@ -155,8 +155,8 @@ module Epp
|
|||
end
|
||||
|
||||
def validate_update
|
||||
if element_count('update > chg > registrant') > 0
|
||||
requires 'extension > extdata > legalDocument' if current_user.legaldoc_mandatory?
|
||||
if element_count('update > chg > registrant').positive? && current_user.legaldoc_mandatory?
|
||||
requires 'extension > extdata > legalDocument'
|
||||
end
|
||||
|
||||
@prefix = 'update > update >'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue