importance 0.2.10 → 0.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c6df73c1224caf34550ec06412c5b3d8593e8c739fe5d230aa8b21162943a345
4
- data.tar.gz: 1fca5891610167a012e98f5657031110cc1ac0fbc9e6829919f0a40c6726404a
3
+ metadata.gz: dc2e1f008d3922cf7deb1ee6e6c22a26ab9ae17e9cdb80015004b00d47e4aff4
4
+ data.tar.gz: e31f943ad59433b7a1cf169a7bd56731ef0d67dc62808f8ef2ff9080e5d4f29b
5
5
  SHA512:
6
- metadata.gz: 24197c88322351622f52a6dc0332364edfca5102790aa6623dbb05bced77d16738402c95e72591319d8f77a810cac58a62fd458f189b19aef20b9b97fb4d9193
7
- data.tar.gz: '018c9c0a074b89a12cf5d001dfcfff8a5edda9e2f09eb271583750fa47012b9052d86d4e459b52688df44ecdb80d22c1384419d28790ad401314d28c4cb7e81c'
6
+ metadata.gz: ac91f449860f08cc85bee09cf705169e9716b8c2a918b3657c6a252a99fc9fc204268d2b205f09ae99aff35084b4c00e84192014a17772e95548cb048b49c135
7
+ data.tar.gz: c1c60066a45f297441ea13b276398072a29c7a46ed6a1f822eb4d4880fc5b5acba9a093eb5e3e6f92b527578c516b261fffbafdc0ed2128f3969b7344b809a9a
@@ -84,7 +84,8 @@ module Importance
84
84
  next if attribute_name == ""
85
85
  next if @mappings.values.count(attribute_name) <= 1
86
86
 
87
- flash[:alert] = t("importance.errors.duplicate_mapping", attribute: attribute.labels.first)
87
+ attribute_label = @importer.importer_attributes.find { |attr| attr.key.to_s == attribute_name }.labels.first
88
+ flash[:alert] = t("importance.errors.duplicate_mapping", attribute: attribute_label)
88
89
  render :map, status: :unprocessable_entity and return
89
90
  end
90
91
 
@@ -1,3 +1,3 @@
1
1
  module Importance
2
- VERSION = "0.2.10"
2
+ VERSION = "0.2.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: importance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.10
4
+ version: 0.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukas_Skywalker