aboutsummaryrefslogtreecommitdiffstats
path: root/lib/soap/mapping/registry.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/soap/mapping/registry.rb')
-rw-r--r--lib/soap/mapping/registry.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/soap/mapping/registry.rb b/lib/soap/mapping/registry.rb
index 823e80666d..a4183fea57 100644
--- a/lib/soap/mapping/registry.rb
+++ b/lib/soap/mapping/registry.rb
@@ -522,7 +522,7 @@ private
list = (class << obj; self; end).ancestors - obj.class.ancestors
unless list.empty?
node.extraattr[RubyExtendName] = list.collect { |c|
- if c.name.empty?
+ unless c.name
raise TypeError.new("singleton can't be dumped #{ obj }")
end
c.name