mirror of
https://github.com/internetee/registry.git
synced 2025-07-31 06:56:23 +02:00
Add epp errors support to bulk renew
This commit is contained in:
parent
0f812d0b15
commit
79351d50d9
8 changed files with 42 additions and 22 deletions
|
@ -15,8 +15,12 @@ module Repp
|
|||
end
|
||||
|
||||
def update
|
||||
@epp_errors ||= []
|
||||
@epp_errors << { code: 2304, msg: 'New contact must be valid' } if @new_contact.invalid?
|
||||
@epp_errors ||= ActiveModel::Errors.new(self)
|
||||
if @new_contact.invalid?
|
||||
@epp_errors.add(:epp_errors,
|
||||
msg: 'New contact must be valid',
|
||||
code: '2304')
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue