[#442] Handle nil changes in Atom feed
This commit is contained in:
parent
e7883b876a
commit
1e68bed997
|
@ -19,12 +19,13 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
|
|||
end
|
||||
xml.content "type" => "html" do
|
||||
xml.text! '<ul>'
|
||||
change.details.each do |detail|
|
||||
xml.text! '<li>' + change.render_detail(detail, false) + '</li>'
|
||||
change.changes.each do |detail|
|
||||
change_content = change.render_detail(detail, false)
|
||||
xml.text!(content_tag(:li, change_content)) if change_content.present?
|
||||
end
|
||||
xml.text! '</ul>'
|
||||
xml.text! textilizable(change, :notes, :only_path => false) unless change.notes.blank?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue