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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73a43f010ea22167ff68efdc1d5f561d3715956c
|
4
|
+
data.tar.gz: e75ab454c783669f0fd9b122960d368f0b31880b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
|