Commit d7bc990c by Ivan Lan

fix: logger

parent cf98298a
......@@ -106,6 +106,7 @@ module TalltyImportExport
def process_options(options)
options = import_options.merge(options).with_indifferent_access
Rails.logger.info options
@headers = options.delete(:headers) || import_headers(**options.symbolize_keys)
@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
......
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