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

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