morse_fields_validator 1.1.9 → 1.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fields_validator.rb +1 -1
- data/lib/morse_fields_validator/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66d826370e9d7e4c7ac884703d89688ae01031ad
|
4
|
+
data.tar.gz: f697391723655835ca4d69e61132472cb768e166
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f00e22ac2472f33666784cd8ee54c3f40bd6c57bd09bfc9549063a20f6766d87375618868945459e0cf39ba2725e225681d90aae64eec73fe846657184f408cd
|
7
|
+
data.tar.gz: 35bd421cc83b06f3dfe542445570cfedb3e813b95a4d9aac871626cee9054af24abf1cb71fbfa7d2e31638c600c45640c38e1f042d272341d67cfcaaa516f15f
|
data/lib/fields_validator.rb
CHANGED
@@ -29,7 +29,7 @@ module FieldsValidator
|
|
29
29
|
|
30
30
|
def validate_column_names
|
31
31
|
if self.class.required_database_fields and self.class.required_database_fields.any?
|
32
|
-
self.class.required_database_fields.each { |rdf| errors.add(rdf, "does not have a column in the database.") unless self.class.column_names.include?(rdf)} if self.class.required_database_fields.any?
|
32
|
+
self.class.required_database_fields.each { |rdf| errors.add(rdf, "does not have a column in the database.") unless self.class.column_names.include?(rdf.to_s)} if self.class.required_database_fields.any?
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|