schema-model 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/schema/model.rb +6 -0
- 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: 764956c8604af4075e04b65288078003c6dd7bcf18cd5244e0e8178d3e2c680a
|
4
|
+
data.tar.gz: 974c5a9f815257910a70420d31af7318dbb22eafce771dfd7dfea1102ec57b15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5a8a186d41416db20b4208658441c3959064574b515a7f9b1dfb37aa57db793a973296db8e581fb445e8a608821b351badbafe3ab40090504207be9632be14f
|
7
|
+
data.tar.gz: 7d46f4c3629af7e994669f14106476aba5631ca3f54e98ffd87ab5b1ffb7db01c9f111452de8c0b9da5564caf1d306e3813c10bba4e7559621fb041871b1ffac
|
data/lib/schema/model.rb
CHANGED
@@ -117,6 +117,12 @@ STR
|
|
117
117
|
@parsing_errors ||= Errors.new
|
118
118
|
end
|
119
119
|
|
120
|
+
def not_set?
|
121
|
+
self.class.schema.values.all? do |field_options|
|
122
|
+
!instance_variable_defined?(field_options[:instance_variable])
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
120
126
|
private
|
121
127
|
|
122
128
|
def get_schema(data)
|