summaryrefslogtreecommitdiff
path: root/lib/rss/0.9.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rss/0.9.rb')
-rw-r--r--lib/rss/0.9.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/rss/0.9.rb b/lib/rss/0.9.rb
index 3bbf67be05..41b8fced73 100644
--- a/lib/rss/0.9.rb
+++ b/lib/rss/0.9.rb
@@ -472,8 +472,12 @@ module RSS
rv
end
- def maker_target(maker)
- maker.items.new_item
+ def maker_target(items)
+ if items.respond_to?("items")
+ # For backward compatibility
+ items = items.items
+ end
+ items.new_item
end
def setup_maker_element(item)