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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0dab531f625c13a48f3d57686f5b472da706aad9
4
- data.tar.gz: 55cd9a1ee78f5cff5406e159ad996f9d60b9a2c8
3
+ metadata.gz: 5ca3db29885587cc4b3ccded32d1ee889408d9c4
4
+ data.tar.gz: 4c1a6bf6f3cf7c264d63c02bd07419a500891154
5
5
  SHA512:
6
- metadata.gz: d0dc1f91b3bd51765eb6326213b3cda259866dd191d2bfb31fff8f2d3ce9ec1592cf332734042fc5106d968612d2d22fa2c5d3b81286320c0c7dd35f5655a340
7
- data.tar.gz: b7e9acbb9829eaad32e6ca338224942119ad0b9b9f6a187793b62cb35126d7906c88eb26c2e0b442d18533deb41c43f982821b9a8d24724a31259a9907f3cbb2
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
- if resource_model.present?
86
- guard_whitelist(resource_model)
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
 
@@ -1,3 +1,3 @@
1
1
  module AjaxValidator
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ajax_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Kalita