Commit 1e68bed9 authored by Eric Davis's avatar Eric Davis

[#442] Handle nil changes in Atom feed

parent e7883b87
......@@ -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
\ No newline at end of file
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment