From e9907122ed6d71de4601b0be22e39e4486636c69 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 8 Jul 2019 13:03:50 +0900 Subject: [PATCH] Suppress a warning when `write_headers: true` --- lib/csv/writer.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/csv/writer.rb b/lib/csv/writer.rb index 8e0aab32ff..1682ac03ea 100644 --- a/lib/csv/writer.rb +++ b/lib/csv/writer.rb @@ -14,6 +14,7 @@ class CSV @output = output @options = options @lineno = 0 + @fields_converter = nil prepare if @options[:write_headers] and @headers self << @headers