Attempt to a quick correction
This commit is contained in:
parent
1a0e09213a
commit
df6902a535
@ -24,7 +24,7 @@
|
|||||||
version.changeset.each do |key, val|
|
version.changeset.each do |key, val|
|
||||||
changes += version.item_type.constantize.human_attribute_name(key)
|
changes += version.item_type.constantize.human_attribute_name(key)
|
||||||
changes += ': '
|
changes += ': '
|
||||||
if key == 'description'
|
if key == 'description' && val[0].present? && val[1].present?
|
||||||
changes += Differ.diff(val[1], val[0]).to_s
|
changes += Differ.diff(val[1], val[0]).to_s
|
||||||
else
|
else
|
||||||
changes += "#{val[0]} -> #{val[1]}"
|
changes += "#{val[0]} -> #{val[1]}"
|
||||||
|
@ -60,7 +60,7 @@ xml.rdf :RDF,
|
|||||||
version.changeset.each do |key, val|
|
version.changeset.each do |key, val|
|
||||||
changes += version.item_type.constantize.human_attribute_name(key)
|
changes += version.item_type.constantize.human_attribute_name(key)
|
||||||
changes += ': '
|
changes += ': '
|
||||||
if key == 'description'
|
if key == 'description' && val[0].present? && val[1].present?
|
||||||
changes += Differ.diff(val[1], val[0]).to_s
|
changes += Differ.diff(val[1], val[0]).to_s
|
||||||
else
|
else
|
||||||
changes += "#{val[0]} -> #{val[1]}"
|
changes += "#{val[0]} -> #{val[1]}"
|
||||||
|
Loading…
Reference in New Issue
Block a user