fix path to localize issue

This commit is contained in:
oleghasjanov 2025-03-21 13:45:07 +02:00
parent 58a1dbafb0
commit 98f0bb283e

View file

@ -38,7 +38,7 @@ class Epp::Domain < Domain
([Contact.find(registrant.id)] + active_admins + active_techs).each do |x|
unless x.valid?
if x.class.name == 'AdminDomainContact' && x.contact.underage?
add_epp_error('2304', nil, nil, I18n.t('activerecord.errors.models.domain.contact_too_young'))
add_epp_error('2304', nil, nil, I18n.t('activerecord.errors.models.admin_domain_contact.contact_too_young'))
else
add_epp_error('2304', nil, nil, I18n.t(:contact_is_not_valid, value: x.try(:code)))
end