From d29353f2b64af7359b047863b8a4a3ed182f1811 Mon Sep 17 00:00:00 2001 From: bogdanRada Date: Thu, 12 Dec 2013 18:07:51 +0200 Subject: [PATCH] fix --- app/helpers/washout_builder_helper.rb | 4 ++-- lib/washout_builder/version.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/helpers/washout_builder_helper.rb b/app/helpers/washout_builder_helper.rb index 67ebc31..db1ca11 100644 --- a/app/helpers/washout_builder_helper.rb +++ b/app/helpers/washout_builder_helper.rb @@ -51,8 +51,8 @@ def get_class_ancestors(param,class_name, defined) ancestor_object = WashOut::Param.parse_def(@soap_config,ancestor_structure)[0] bool_the_same = same_structure_as_ancestor?(param, ancestor_object) unless bool_the_same - top_ancestors = get_class_ancestors(ancestor_class, defined) - defined << {:class =>ancestor_class.to_s, :obj =>ancestor_object , :ancestors => top_ancestors } + top_ancestors = get_class_ancestors(ancestor_object,ancestors[0], defined) + defined << {:class =>ancestors[0], :obj =>ancestor_object , :ancestors => top_ancestors } end end ancestors unless bool_the_same diff --git a/lib/washout_builder/version.rb b/lib/washout_builder/version.rb index 0dc101b..c132386 100644 --- a/lib/washout_builder/version.rb +++ b/lib/washout_builder/version.rb @@ -1,3 +1,3 @@ module WashoutBuilder - VERSION = "0.9.8" + VERSION = "0.9.9" end