mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 03:06:14 +02:00
Add keyrelay actions
This commit is contained in:
parent
ec721b69c0
commit
f637b3ab98
5 changed files with 93 additions and 23 deletions
|
@ -63,6 +63,19 @@ module Epp::Common
|
|||
@errors += obj.errors[:epp_errors]
|
||||
end
|
||||
|
||||
def epp_request_valid?(*selectors)
|
||||
selectors.each do |selector|
|
||||
el = parsed_frame.css(selector).first
|
||||
next unless el
|
||||
epp_errors << {
|
||||
code: '2003',
|
||||
msg: I18n.t('errors.messages.required_parameter_missing', key: el.name)
|
||||
} unless el.text.present?
|
||||
end
|
||||
|
||||
epp_errors.empty?
|
||||
end
|
||||
|
||||
def xml_attrs_present?(ph, attributes)
|
||||
attributes.each do |x|
|
||||
epp_errors << {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue