Commit bde9e968 by liyijie

fix: process_options do not use symbolize_keys, use with_indifferent_access

parent da0d1830
......@@ -150,7 +150,7 @@ module TalltyImportExport
end
def process_options(options = {})
options = export_options.merge(options).with_indifferent_access.symbolize_keys
options = export_options.merge(options).with_indifferent_access
@row_height ||= options.delete(:row_height) || 25
@width ||= (options.delete(:width) || 20).to_f
......
......@@ -105,7 +105,7 @@ module TalltyImportExport
end
def process_options(options)
options = import_options.merge(options).with_indifferent_access.symbolize_keys
options = import_options.merge(options).with_indifferent_access
@headers = options.delete(:headers) || import_headers(**options)
@primary_keys = options.delete(:primary_keys) || @headers.map { |header| header[:primary_key] ? header[:key].to_sym : nil }.compact
@skip_keys = options.delete(:skip_keys) || @headers.map { |header| header[:skip] ? header[:key].to_sym : nil }.compact
......
module TalltyImportExport
VERSION = "1.1.1"
VERSION = '1.1.3'
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