mods/standard/sets/all/rss.rb in wagn-1.12.13 vs mods/standard/sets/all/rss.rb in wagn-1.13.0.pre
- old
+ new
@@ -1,13 +1,12 @@
-# -*- encoding : utf-8 -*-
format :rss do
- def show args
- # render( args[:view] || :feed )
+ def show view, args
@xml = Builder::XmlMarkup.new
- render_feed args
+ view ||= :feed
+ render view, args
end
# FIXME: integrate this with common XML features when it is added
view :feed do |args|
begin
@@ -31,10 +30,10 @@
else
[card]
end
items.each do |item|
@xml.item do
- subformat(item).render_feed_item :view_changes=>(card.id==Card::RecentID) #FIXME! yuck.
+ subformat(item).render_feed_item :view_changes=>(card.id==RecentID) #FIXME! yuck.
end
end
end