]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/note/_note.rss.builder
Drop with_format and user the new :formats render option instead
[rails.git] / app / views / note / _note.rss.builder
index 49f0a5171a66a48d6fa5dc04f92aacf122f99f80..90d575725615af3b4a96783537081753c328db2b 100644 (file)
@@ -9,9 +9,7 @@ xml.item do
 
   xml.link url_for(:controller => "browse", :action => "note", :id => note.id, :only_path => false)
   xml.guid url_for(:controller => "note", :action => "read", :id => note.id, :only_path => false)
-  with_format(:html) do
-    xml.description render(:partial => "description", :object => note)
-  end
+  xml.description render(:partial => "description", :object => note, :formats => [ :html ])
   xml.author note.author_name
   xml.pubDate note.updated_at.to_s(:rfc822)
   xml.geo :lat, note.lat