polyrex-createobject 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/polyrex-createobject.rb +2 -1
- metadata +1 -1
data/lib/polyrex-createobject.rb
CHANGED
@@ -65,13 +65,14 @@ end
|
|
65
65
|
record = Rexle.new PolyrexSchema.new(child_schema).to_s
|
66
66
|
@id = id if id
|
67
67
|
|
68
|
-
record.root.add_attribute({'id' => @id.to_s.clone})
|
69
68
|
if @id.to_i.to_s == @id.to_s then
|
70
69
|
@id = @id.to_s.succ
|
71
70
|
else
|
72
71
|
@id = @parent_node.element('count(//@id)').to_i + 2
|
73
72
|
end
|
74
73
|
|
74
|
+
record.root.add_attribute({'id' => @id.to_s.clone})
|
75
|
+
|
75
76
|
a = child_schema[/[^\[]+(?=\])/].split(',')
|
76
77
|
summary = record.element('summary')
|
77
78
|
a.each do |field_name|
|