lib/eddy/models/transaction_set.rb in eddy-0.7.0 vs lib/eddy/models/transaction_set.rb in eddy-0.8.0
- old
+ new
@@ -76,10 +76,10 @@
#
# @param s_sep [String] (self.store.segment_separator)
# @return [String]
def render(s_sep = self.store.segment_separator)
add_envelope()
- return self.all_components.map { |s| s.render(self.store.element_separator) }.join(s_sep)
+ return self.all_components.map { |s| s.render(self.store.element_separator) }.compact.join(s_sep)
end
# Return all contained Segments in a single, flattened array.
#
# @return [Array<Eddy::Models::Segment>]