From 446b3eb672293bc169f9f30ac797f5ce97bf12f2 Mon Sep 17 00:00:00 2001 From: bogdanRada Date: Mon, 9 Dec 2013 19:56:45 +0200 Subject: [PATCH] fix --- app/helpers/washout_builder_helper.rb | 5 +++-- lib/washout_builder/version.rb | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/helpers/washout_builder_helper.rb b/app/helpers/washout_builder_helper.rb index 0b8828d..f824578 100644 --- a/app/helpers/washout_builder_helper.rb +++ b/app/helpers/washout_builder_helper.rb @@ -62,8 +62,9 @@ def get_class_ancestors(param,class_name, defined) def fix_descendant_wash_out_type(param, complex_class) param_class = complex_class.is_a?(Class) ? complex_class : complex_class.constantize rescue nil if !param_class.nil? && param_class.ancestors.include?(WashOut::Type) && !param.map[0].nil? - param.name = param.map[0].name - param.map = WashOut::Param.parse_def(@soap_config, param_class.wash_out_param_map)[0].map + descendant = WashOut::Param.parse_def(@soap_config, param_class.wash_out_param_map)[0] + param.name = descendant.name + param.map = descendant.map end end diff --git a/lib/washout_builder/version.rb b/lib/washout_builder/version.rb index a13f63c..8451fcb 100644 --- a/lib/washout_builder/version.rb +++ b/lib/washout_builder/version.rb @@ -1,3 +1,3 @@ module WashoutBuilder - VERSION = "0.8.6" + VERSION = "0.8.7" end