Commit 1fdab0cf by liyijie

tallty_import_export headers use symbel

parent 84d7f930
...@@ -23,7 +23,7 @@ module TalltyImportExport ...@@ -23,7 +23,7 @@ module TalltyImportExport
@primary_keys = options.delete(:primary_keys) || headers.map { |header| header[:primary_key] ? header[:key].to_sym : nil }.compact @primary_keys = options.delete(:primary_keys) || headers.map { |header| header[:primary_key] ? header[:key].to_sym : nil }.compact
excel_hash = headers.reduce({}) do |h, header| excel_hash = headers.reduce({}) do |h, header|
h[header[:key]] = header[:name] h[header[:key].to_sym] = header[:name]
h h
end end
......
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