Commit 4fdeea2e by liyijie

update version

parent eee48c45
...@@ -51,7 +51,7 @@ module TalltyImportExport ...@@ -51,7 +51,7 @@ module TalltyImportExport
def process_options options def process_options options
options = options.with_indifferent_access options = options.with_indifferent_access
@headers = options.delete(:headers) || [] @headers = options.delete(:headers)
@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|
......
module TalltyImportExport module TalltyImportExport
VERSION = "1.0.8" VERSION = "1.0.9"
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