Commit da0d1830 by Ivan Lan

feat: add import headers to export instance

parent af90a5ec
...@@ -49,9 +49,10 @@ module TalltyImportExport ...@@ -49,9 +49,10 @@ module TalltyImportExport
def export_workbook(workbook, **options) def export_workbook(workbook, **options)
export_instance = TalltyImportExport::Export.new(@klass) export_instance = TalltyImportExport::Export.new(@klass)
Rails.logger.info options.symbolize_keys opts = options.symbolize_keys.merge({ headers: @headers })
export_instance.process_options(options.symbolize_keys) Rails.logger.info opts
export_instance.export_workbook(workbook, [], **options.symbolize_keys) export_instance.process_options(opts)
export_instance.export_workbook(workbook, [], **opts)
end end
def exchange_to_ids(xlsx_file, associations, **options) def exchange_to_ids(xlsx_file, associations, **options)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment