dynarex 1.0.11 → 1.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dynarex.rb +3 -3
- metadata +1 -1
data/lib/dynarex.rb
CHANGED
@@ -441,12 +441,12 @@ end))
|
|
441
441
|
created = Time.now.to_s
|
442
442
|
last_modified = ''
|
443
443
|
|
444
|
-
if row.attributes[
|
445
|
-
id = row.attributes[
|
444
|
+
if row.attributes[:id] then
|
445
|
+
id = row.attributes[:id]
|
446
446
|
else
|
447
447
|
i += 1; id = i.to_s
|
448
448
|
end
|
449
|
-
created = row.attributes[
|
449
|
+
created = row.attributes[:created] if row.attributes[:created]
|
450
450
|
last_modified = row.attributes[:last_modified] if row.attributes[:last_modified]
|
451
451
|
body = row.xpath('*').inject({}) do |r,node|
|
452
452
|
r.merge node.name.to_sym => node.text
|