Commit 6d35b774 by liyijie

feat: update tallty_import_export, import return _record

parent dd93e300
......@@ -253,6 +253,7 @@ module TalltyImportExport
if primary_keys.present?
_record = associations.find_or_initialize_by(line_info.clone.extract!(*primary_keys))
_record.update!(line_info.clone.except!(*primary_keys, *@skip_keys))
_record
else
associations.create!(line_info.clone.except!(*@skip_keys))
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