slim_form_object 3.3.3 → 3.3.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
  SHA256:
3
- metadata.gz: 1169e7dcf359595abb4f60e3c7f915936e547530b31b557750443c823efa1501
4
- data.tar.gz: '09fe5c3e7c2fa09bbbe186d24ff686ed045b3a436f611363ae35bc6ac35cbafe'
3
+ metadata.gz: ce3b78974679cc29b22f510e32676f1f25a59662b441503ad0ef4bcd1562a88f
4
+ data.tar.gz: 58611fe0b47550ad918747cdf4ee247ef44c3a5fce7dd2f261a34de9757cb319
5
5
  SHA512:
6
- metadata.gz: '0781e5140217065b6122d35bb188dd149613a4312481c37c7e50a2da2e302c0401b54752faa488621e9b41dc1dd3a6b5a0d43a7b7943c4cf7dfe2b290972ea81'
7
- data.tar.gz: 799d39aab29f6b90b8513d84a214074a341d7f201c7adef305bcc8e9efa71d5f49a0d6f817599326751f09f86c8f7d2e8ec78c30bd79711892bc50b4acba69f4
6
+ metadata.gz: 8fad6de79c2ea9fd1beff0c3da68f5a25232ea155f55d6a4499e2e46f016fe44a16ca15ce1cf4a3cf81bbc4571d41f59ca9c7c0be5949868e00ca58ef18799f8
7
+ data.tar.gz: 00e3ad81c740a9d730973e9d7e35efc539316b56b718dd5a3bb70af00c876b0a6e0a2bb5ff59988fa1dec5a34054631486a5c427115bddecca3f65543e760682
@@ -44,6 +44,9 @@ module SlimFormObject
44
44
  model = get_class_of(key_params, form_object.base_modules[key_params.to_sym])
45
45
  attributes = {}
46
46
  nested = []
47
+ unless model
48
+ raise "method get_class_of(#{key_params}, #{form_object.base_modules[key_params.to_sym]}) return nil, maybe set base_module for #{key_params}"
49
+ end
47
50
 
48
51
  value_params.each do |key, value|
49
52
  if is_nested?(value)
@@ -1,3 +1,3 @@
1
1
  module SlimFormObject
2
- VERSION = "3.3.3"
2
+ VERSION = "3.3.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slim_form_object
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.3
4
+ version: 3.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - nerzh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-09 00:00:00.000000000 Z
11
+ date: 2019-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel