Add epp errors tto the concern itself

This commit is contained in:
Alex Sherman 2021-05-04 15:19:50 +05:00
parent d4775ba5c5
commit e15fed2cd0
5 changed files with 19 additions and 7 deletions

View file

@ -94,7 +94,7 @@ module Epp
end
def handle_errors(obj = nil)
@errors ||= []
@errors ||= ActiveModel::Errors.new(self)
if obj
obj.construct_epp_errors