mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
Epp errors now support accept nested attributes
This commit is contained in:
parent
b7c3279f37
commit
5f277ae2bb
1 changed files with 2 additions and 0 deletions
|
@ -4,7 +4,9 @@ module EppErrors
|
|||
def construct_epp_errors
|
||||
epp_errors = []
|
||||
errors.messages.each do |key, values|
|
||||
key = key.to_s.split('.')[0].to_sym
|
||||
next if key == :epp_errors
|
||||
|
||||
if self.class.reflect_on_association(key)
|
||||
epp_errors << collect_child_errors(key)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue