mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 11:38:30 +02:00
Add XML attribute validator
This commit is contained in:
parent
36e36cf616
commit
01cfddee95
5 changed files with 42 additions and 13 deletions
|
@ -123,7 +123,7 @@ class Domain < ActiveRecord::Base
|
|||
self.period = period
|
||||
save
|
||||
else
|
||||
errors[:base] << {msg: I18n.t('errors.messages.epp_exp_dates_do_not_match'), obj: 'domain', val: cur_exp_date}
|
||||
errors[:base] << {msg: I18n.t('errors.messages.epp_exp_dates_do_not_match'), obj: 'curExpDate', val: cur_exp_date}
|
||||
false
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue