style fixes

This commit is contained in:
Andres Keskküla 2014-08-29 13:14:20 +03:00
parent 22f753aa6c
commit 0e655bf306
7 changed files with 20 additions and 18 deletions

View file

@ -63,10 +63,12 @@ module Epp::Common
epp_errors.empty?
end
def xml_attrs_array_present?(array_ph, attributes )
def xml_attrs_array_present?(array_ph, attributes)
[array_ph].flatten.each do |ph|
attributes.each do |x|
epp_errors << {code: '2003', msg: I18n.t('errors.messages.required_parameter_missing', key: x.last)} unless has_attribute(ph, x)
unless has_attribute(ph, x)
epp_errors << { code: '2003', msg: I18n.t('errors.messages.required_parameter_missing', key: x.last) }
end
end
end
epp_errors.empty?