mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 20:55:44 +02:00
Refactor epp error due to Rails 6.1 changes
This commit is contained in:
parent
39bbe6e06d
commit
c613de1a11
5 changed files with 12 additions and 11 deletions
|
@ -67,7 +67,7 @@ module Repp
|
|||
@epp_errors ||= []
|
||||
|
||||
obj&.construct_epp_errors
|
||||
@epp_errors += obj.errors[:epp_errors] if obj
|
||||
@epp_errors += obj.errors.where(:epp_errors).map(&:options) if obj
|
||||
|
||||
format_epp_errors if update
|
||||
@epp_errors.uniq!
|
||||
|
|
|
@ -151,7 +151,7 @@ module Repp
|
|||
@successful << { type: 'domain_transfer', domain_name: domain.name }
|
||||
else
|
||||
@errors << { type: 'domain_transfer', domain_name: domain.name,
|
||||
errors: domain.errors[:epp_errors] }
|
||||
errors: domain.errors.where(:epp_errors)[0].options }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue