Skip to content

Commit 48f00bb

Browse files
Joe Martypcreux
authored andcommitted
Include header info in import report (#83)
`extra_headers` now shows up in the report returned by `run!`
1 parent 2921a2f commit 48f00bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/csv_importer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def valid_header?
9494
def run!
9595
if valid_header?
9696
@report = Runner.call(rows: rows, when_invalid: config.when_invalid,
97-
after_save_blocks: config.after_save_blocks)
97+
after_save_blocks: config.after_save_blocks, report: @report)
9898
else
9999
@report
100100
end

0 commit comments

Comments
 (0)