mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 11:16:00 +02:00
Fix generation of aggregation-based errors
This commit is contained in:
parent
991d2d252c
commit
f22fc2659f
1 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ module EppErrors
|
|||
end
|
||||
|
||||
def collect_aggregation_errors(aggregation)
|
||||
epp_errors = []
|
||||
epp_errors = ActiveModel::Errors.new(self)
|
||||
|
||||
aggregation.errors.details.each do |attr, error_details|
|
||||
error_details.each do |error_detail|
|
||||
|
@ -77,7 +77,7 @@ module EppErrors
|
|||
message = "#{aggregation.model_name.human} #{message.camelize(:lower)}"
|
||||
end
|
||||
|
||||
epp_errors << { code: epp_code, msg: message }
|
||||
epp_errors.add(attr, code: epp_code, msg: message)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue