dynarex 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/dynarex.rb +2 -0
- metadata +1 -1
data/lib/dynarex.rb
CHANGED
|
@@ -120,6 +120,8 @@ EOF
|
|
|
120
120
|
# for each field update each record field
|
|
121
121
|
record = XPath.first(@doc.root, "records/#{record_name}[@id=#{id.to_s}]")
|
|
122
122
|
fields.each {|k,v| record.elements[k.to_s].text = v if v}
|
|
123
|
+
record.add_attribute('last_modified', Time.now.to_s)
|
|
124
|
+
|
|
123
125
|
load_records
|
|
124
126
|
end
|
|
125
127
|
|