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: edb1f1d0c16e3d3a8554d947c8ff2f19e6d4e109
4
- data.tar.gz: 6333c0ee24f56784fd42e8cc8fb668f49218f900
3
+ metadata.gz: 966175892cb3b07f19cdaedc7b9135b727da6742
4
+ data.tar.gz: 90a03827a69e7b6c23059ec44831dd0fe3725ffd
5
5
  SHA512:
6
- metadata.gz: 243f72e4566324706c19a8aeee726dfed611164a513f4da861d6cf6efa666daf52e84fadfbf3974f6e223758d9268a37fed92985a219e05027361a122bca6eeb
7
- data.tar.gz: 9a225ecbf836650498b221e775b76354b2ff6efe775343e70eea96691d19850e7922cd9cd60d24a645c3c058143d8398ff512e8c05fad66e5b7763f5e0be3455
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
- column_name = conflict_target.last.to_s
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
 
@@ -1,3 +1,3 @@
1
1
  module ActiveRecordCSVImporter
2
- VERSION = '0.1.7'.freeze
2
+ VERSION = '0.1.8'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord_csv_importer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zulfiqar Ali