activerecord-bixformer 0.4.2 → 0.4.3

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: 9cc28005de087556ca559fa8b1bed153308deee0
4
- data.tar.gz: 8525c597eecccb246db7dcdb1847f11549354a1d
3
+ metadata.gz: 73a43f010ea22167ff68efdc1d5f561d3715956c
4
+ data.tar.gz: e75ab454c783669f0fd9b122960d368f0b31880b
5
5
  SHA512:
6
- metadata.gz: 1157d38ad117b209f602c11490c6713ea7752239c181935399cfdf7b4dc84d6ca6082e5ae8ded9a62164d15baeddc30e4dc5a0f1be42addd3ce65f96e6560b93
7
- data.tar.gz: 2b963ecb08a155acd8a5feec8084c041ca7eff79c7a35427ff9d0df637231d67b0dadeee176f735880e20afce42d9bfb79732316cb8a31ca3c410c3ada19183b
6
+ metadata.gz: 28bba0a9adcef771c75f9977c10dcceb0f696d346aa67935842b4fea7600b619d919dfc2c16eef55a40845618bb3f5249dcc3d0753d34a6b58b84a50a2db9371
7
+ data.tar.gz: 9cbe63b03d90559515b32e5cc054249181f5b6c87d5e3895c726641af886a16664529d3153197037f50e47358cf7871a5b4f8779a0371b0ea9be2d1ab925b71c
@@ -20,7 +20,12 @@ module ActiveRecord
20
20
  end
21
21
 
22
22
  def verify_csv_titles(csv_title_row)
23
- @attributes.map { |attr| csv_title(attr.name) }.all? { |title| csv_title_row.include?(title) } &&
23
+ attribute_names = activerecord_constant.attribute_names
24
+
25
+ @attributes
26
+ .select { |attr| attribute_names.include?(attr.name) }
27
+ .map { |attr| csv_title(attr.name) }
28
+ .all? { |title| csv_title_row.include?(title) } &&
24
29
  @associations.all? { |ass| ass.verify_csv_titles(csv_title_row) }
25
30
  end
26
31
 
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module Bixformer
3
- VERSION = "0.4.2"
3
+ VERSION = "0.4.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-bixformer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroaki Otsu