diff --git a/app/helpers/washout_builder_helper.rb b/app/helpers/washout_builder_helper.rb index b137b1f..f2cb81e 100644 --- a/app/helpers/washout_builder_helper.rb +++ b/app/helpers/washout_builder_helper.rb @@ -64,10 +64,10 @@ def get_class_ancestors(param,class_name, defined) def get_nested_complex_types(param, defined) defined = [] if defined.blank? complex_class = get_complex_class_name(param, defined) - if param.classified? - defined << {:class =>complex_class, :obj => param, :ancestors => get_class_ancestors(param, complex_class, defined)} unless complex_class.nil? + if param.classified? && !complex_class.nil? + defined << {:class =>complex_class, :obj => param, :ancestors => get_class_ancestors(param, complex_class, defined)} else - defined << {:class =>complex_class, :obj => param} unless complex_class.nil? + defined << {:class =>complex_class, :obj => param} end if param.is_complex? c_names = [] diff --git a/lib/washout_builder/version.rb b/lib/washout_builder/version.rb index a469221..01701c3 100644 --- a/lib/washout_builder/version.rb +++ b/lib/washout_builder/version.rb @@ -1,3 +1,3 @@ module WashoutBuilder - VERSION = "0.5.0" + VERSION = "0.5.1" end