Commit c734c4e8 by liyijie

fix import process_options @headers default use import_headers

parent d58c2c54
......@@ -51,7 +51,7 @@ module TalltyImportExport
def process_options options
options = options.with_indifferent_access
@headers = options.delete(:headers)
@headers = options.delete(:headers) || import_headers
@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|
......
module TalltyImportExport
VERSION = "1.0.11"
VERSION = "1.0.12"
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