activerecord_csv_importer 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 966175892cb3b07f19cdaedc7b9135b727da6742
|
4
|
+
data.tar.gz: 90a03827a69e7b6c23059ec44831dd0fe3725ffd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b9f36dad1ad874e1addc4c3b9077bda037ddba6201dc1d5de3efa39b8dcc111affaca3bdd34d65d7eeda8f027213e8dd1fa8cd0a22416a51f0f059f154e1f86
|
7
|
+
data.tar.gz: d978e273d38ac4e28921c429ac5d3b5183da09622202f24caacefed70baea83cfa8284da015ec4527f91c79c43145049e456f8a06ca63ad970e33ab12a651c6a
|
@@ -42,8 +42,7 @@ module ActiveRecordCSVImporter
|
|
42
42
|
conflict_target = config.on_duplicate_key.dig(:on_duplicate_key_update, :conflict_target)
|
43
43
|
return set unless conflict_target
|
44
44
|
|
45
|
-
|
46
|
-
i = header.columns.index { |c| c.name == column_name }
|
45
|
+
i = header.column_definition_names.index(conflict_target.last)
|
47
46
|
set.uniq { |s| s[i] }
|
48
47
|
end
|
49
48
|
|