lib/to_xls.rb in to_xls-0.1.1 vs lib/to_xls.rb in to_xls-0.1.2
- old
+ new
@@ -17,10 +17,10 @@
if columns.any?
line = 0
unless options[:headers] == false
if options[:headers].is_a?(Array)
- sheet.row(0).concat options[:headers]
+ sheet.row(0).concat options[:headers].collect(&:to_s)
else
aux_headers_to_xls(self.first, columns, sheet.row(0))
end
line = 1
end