mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 12:08:27 +02:00
Add more settings to seeds
This commit is contained in:
parent
48ef7b034a
commit
68b5391f06
2 changed files with 13 additions and 8 deletions
|
@ -48,9 +48,9 @@ module Epp::Common
|
|||
end
|
||||
|
||||
# for debugging
|
||||
@errors << {
|
||||
code: '1',
|
||||
msg: 'handle_errors was executed when there were actually no errors'
|
||||
@errors << {
|
||||
code: '1',
|
||||
msg: 'handle_errors was executed when there were actually no errors'
|
||||
} if @errors.blank?
|
||||
|
||||
@errors.uniq!
|
||||
|
@ -65,9 +65,9 @@ module Epp::Common
|
|||
|
||||
def xml_attrs_present?(ph, attributes)
|
||||
attributes.each do |x|
|
||||
epp_errors << {
|
||||
epp_errors << {
|
||||
code: '2003',
|
||||
msg: I18n.t('errors.messages.required_parameter_missing', key: x.last)
|
||||
msg: I18n.t('errors.messages.required_parameter_missing', key: x.last)
|
||||
} unless has_attribute(ph, x)
|
||||
end
|
||||
epp_errors.empty?
|
||||
|
@ -77,7 +77,7 @@ module Epp::Common
|
|||
[array_ph].flatten.each do |ph|
|
||||
attributes.each do |x|
|
||||
next if has_attribute(ph, x)
|
||||
epp_errors << {
|
||||
epp_errors << {
|
||||
code: '2003',
|
||||
msg: I18n.t('errors.messages.required_parameter_missing', key: x.last)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue