ajax_validator 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/ajax_validator/validator.rb +2 -7
- data/lib/ajax_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: 5ca3db29885587cc4b3ccded32d1ee889408d9c4
|
4
|
+
data.tar.gz: 4c1a6bf6f3cf7c264d63c02bd07419a500891154
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3c31cda5576bfd358518bba520c35450df63d78f2c5d2766919de9d597fc8c4f4dfb5810072cad73c36415487c13cdedcd13fe92a5dd9e3de41f5732ff75388
|
7
|
+
data.tar.gz: 9e5ba27f6b197ed31fed47696d9e1a493f8ea2cb0849959156ba89415ef570fc9ced0f0770e0b0d4fab11e4ef2deff0782159d45abada6cc2c658eea626f1afe
|
@@ -82,13 +82,8 @@ module AjaxValidator
|
|
82
82
|
else
|
83
83
|
form_object_klass = nil
|
84
84
|
end
|
85
|
-
|
86
|
-
|
87
|
-
resource_model_klass = constantize_klass(resource_model)
|
88
|
-
else
|
89
|
-
resource_model_klass = nil
|
90
|
-
end
|
91
|
-
guard_whitelist(Object) if form_object_klass.nil? && resource_model_klass.nil?
|
85
|
+
guard_whitelist(resource_model)
|
86
|
+
resource_model_klass = constantize_klass(resource_model)
|
92
87
|
[form_object_klass, resource_model_klass]
|
93
88
|
end
|
94
89
|
|