cerulean 0.12.0 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cerulean.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: 9790519a85cc87e8f646d299fb79118161460a73
|
4
|
+
data.tar.gz: 4b0b488d32d3e6a03a3fee2fc0715df653e08f67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62b10a23ea05fdda685ed6b1b61188b68496996c161c59b79215d41f4009b0aa2a55df11811aa22ea1a8050d7867155d3aeae966ea1c4405f4489504f63dc315
|
7
|
+
data.tar.gz: cf9bdb8deabbccac6d5cecc0e9c516c9bf22296c924db3b522106bb14ff5b8e946f759c2f2817eb890d2d4efcf7149a962e8bf838bc7427c4fe707bc26e284ab
|
data/lib/cerulean.rb
CHANGED
@@ -169,7 +169,7 @@ module Cerulean
|
|
169
169
|
|
170
170
|
@declared[param] = p
|
171
171
|
else
|
172
|
-
|
172
|
+
@declared[param] = opts[:default] if opts.has_key?(:default)
|
173
173
|
if opts[:required]
|
174
174
|
errors[param] ||= []
|
175
175
|
errors[param] << "is required"
|