csv_step_importer 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/csv_step_importer/model/importer.rb +2 -2
- data/lib/csv_step_importer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec7251ef8072cca79a680527151dc2f4a1660a99be40284aeec178a0d60efb64
|
4
|
+
data.tar.gz: 560b7c75e61b67b27fca2f3cb3c4074c4c6899ae853e1c3fb97d1201135f7f4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e76e8585b7ddae0285cc70c16b6428d31a33f7dd8f820641d72396310a296f0f9dffb8be7eed2623e730ff02832663ffb862a647963214a0933720fc1d981c80
|
7
|
+
data.tar.gz: 5ccef6b27d06d85a02078ffc0abc84cf8c831853bb19422fcda85d8b6844b21b415ca02b2e22ef0f6898a4b519465a1d9046205d259794d4a5dac8d9fb13fc10
|
@@ -5,7 +5,7 @@ module CSVStepImporter
|
|
5
5
|
class Importer < CSVStepImporter::Node
|
6
6
|
attr_accessor :dao_values
|
7
7
|
|
8
|
-
validate :validate_updatable_columns
|
8
|
+
validate :validate_updatable_columns, unless: -> { updatable_columns.any? { |column| column.is_a?(Hash) } }
|
9
9
|
|
10
10
|
delegate :model_class, to: :parent
|
11
11
|
delegate :columns, to: :parent
|
@@ -33,7 +33,7 @@ module CSVStepImporter
|
|
33
33
|
return unless errors.empty?
|
34
34
|
|
35
35
|
if (updatable_columns - columns).present?
|
36
|
-
errors[:updatable_columns] << "
|
36
|
+
errors[:updatable_columns] << "updatable_columns must be subset of columns"
|
37
37
|
end
|
38
38
|
end
|
39
39
|
end
|