fix csv export option handling

This commit is contained in:
wvengen 2014-05-13 17:44:16 +02:00
parent 724ce6ff60
commit 0afe8bb20c

View file

@ -13,7 +13,8 @@ class RenderCSV
end
def to_csv
CSV.generate @options do |csv|
options = @options.select {|k| %w(col_sep row_sep encoding).include? k.to_s}
CSV.generate options do |csv|
if h = header
csv << h
end