washout_builder 0.3.7 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
@@ -7,11 +7,9 @@ module WashoutBuilderHelper
|
|
7
7
|
|
8
8
|
if !complex_class.nil? && !defined.blank?
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
end
|
14
|
-
if found == true && p.struct? && !p.classified? && p.source_class_name.blank?
|
10
|
+
complex_obj_found = defined.detect {|hash| hash[:class] == complex_class}
|
11
|
+
|
12
|
+
if !complex_obj_found.nil? && p.struct? && !p.classified? && p.source_class_name.blank?
|
15
13
|
raise RuntimeError, "Duplicate use of `#{p.basic_type}` type name. Consider using classified types."
|
16
14
|
end
|
17
15
|
end
|