Refactor epp error due to Rails 6.1 changes

This commit is contained in:
Alex Sherman 2021-05-03 14:51:13 +05:00
parent 39bbe6e06d
commit c613de1a11
5 changed files with 12 additions and 11 deletions

View file

@ -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!