From 416e87f8f107a6683b6a7a7d75ba77836271e0e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=85=D0=B8=D0=BF=D0=BE=D0=B2=20=D0=94=D0=BC?= =?UTF-8?q?=D0=B8=D1=82=D1=80=D0=B8=D0=B9?= Date: Mon, 22 Apr 2024 09:52:54 +0200 Subject: [PATCH] Fix base_complex_type on restriction without base --- lib/xsd/base_object.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/xsd/base_object.rb b/lib/xsd/base_object.rb index e5a98e5..6809c7f 100644 --- a/lib/xsd/base_object.rb +++ b/lib/xsd/base_object.rb @@ -343,7 +343,7 @@ def method_missing(method, *args) name = link[:property] ? send(link[:property]) : nil if name return @cache[method] = object_by_name(link[:type], name) - elsif is_a?(Restriction) && method == :base_simple_type + elsif is_a?(Restriction) && %i[base_simple_type base_complex_type].include?(method) # handle restriction without base return nil end