lib/acb.rb in acb-0.1.2 vs lib/acb.rb in acb-0.1.3
- old
+ new
@@ -28,10 +28,10 @@
def get_data_from(row)
self.class.columns.get_data(row)
end
def content_string(**options)
- header_content = self.class.columns.header.join(',')
+ header_content = self.class.columns.header.join(',') + "\n"
CSV.generate(header_content, **options) do |csv|
data.each do |row|
csv << get_data_from(row)
end