lib/germinate-atompub/atompub_publisher.rb in devver-germinate-atompub-1.0.0 vs lib/germinate-atompub/atompub_publisher.rb in devver-germinate-atompub-1.0.1
- old
+ new
@@ -55,10 +55,14 @@
else
hl.say text[:collection]
hl.choose { |m|
m.readline = true
collections.each do |c|
- m.choice(c.title) {c}
+ m.choice(c.title) {
+ # Necessary to construct a new collection because Service apparently
+ # doesn't propagate it's http object to the services it returns
+ Atom::Collection.new(c.href, http)
+ }
end
}
end
}
fattr(:collection_url) {