mirror of
https://github.com/internetee/registry.git
synced 2025-06-05 20:27:30 +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!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue