lib/pmp/parser.rb in pmp-0.4.1 vs lib/pmp/parser.rb in pmp-0.5.0

- old
+ new

@@ -87,10 +87,10 @@ results end end def parse_items(document) - self.items = Array(document).collect{|i| PMP::CollectionDocument.new(options.merge(document:i))} + self.items = Array(document).compact.collect{|i| PMP::CollectionDocument.new(options.merge(document:i)) } end end end