Commit 052810bc by liyijie

import_headers_result with @headers setting

parent 09213fed
...@@ -79,7 +79,7 @@ module TalltyImportExport ...@@ -79,7 +79,7 @@ module TalltyImportExport
def convert_data line_info def convert_data line_info
line_info.with_indifferent_access.reduce({}) do |h, (k, v)| line_info.with_indifferent_access.reduce({}) do |h, (k, v)|
header = @headers.find do |_header| header = import_headers_result.find do |_header|
_header[:key].to_sym == k.to_sym _header[:key].to_sym == k.to_sym
end end
# header[:convert] = handle_xxx # header[:convert] = handle_xxx
...@@ -104,7 +104,7 @@ module TalltyImportExport ...@@ -104,7 +104,7 @@ module TalltyImportExport
end end
def import_headers_result def import_headers_result
@headers || import_headers @headers ||= import_headers
end end
def import_headers **args def import_headers **args
......
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