fix csv export option handling
This commit is contained in:
parent
724ce6ff60
commit
0afe8bb20c
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue