./lib/rack/newsstand/models/issue.rb in rack-newsstand-0.1.0 vs ./lib/rack/newsstand/models/issue.rb in rack-newsstand-0.1.1
- old
+ new
@@ -16,11 +16,11 @@
def to_plist_node
{
name: self.name,
title: self.title,
date: self.published_at,
- covers: self.cover_urls.to_hash,
- assets: self.asset_urls.to_a
+ covers: (self.cover_urls || {}).to_hash,
+ assets: (self.asset_urls || []).to_a
}.to_plist(false)
end
def validate
super