formwandler 0.3.2 → 0.3.3

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: cbcfa692b0b2886514b99ee795fc03836e84215a
4
- data.tar.gz: e0664f8b3de025fe370a9db51a880e2ac3eb41e2
3
+ metadata.gz: 6011a520443fcae28ca1add84173e8b4865c47ee
4
+ data.tar.gz: da179196042b570f0703ec256c3852532cbdf4bb
5
5
  SHA512:
6
- metadata.gz: 04dba1cf18f594390fa712984d2a5e538735248d9e52dda7a6dcd3731c3cf59cab55f3dbf05bb7f2130b773890c0910f28401eb629091c6670ee3a97df27e9fe
7
- data.tar.gz: 97daaad16c38cea2411baf75506d89c8cc34b176cd096f579d2c2a1f53b9250e537daf486bc7385d8b0cfd827c487323c7b9ed05393576df3f9a76102333bf1f
6
+ metadata.gz: 036b9f41f72eaff27756c2930c3ba545627b99dc45eb89117bdcfec196d1616c1b604034e3a0ab34555e7fef3c1feb12578feca60b8dd5a3e58b777d7f9fd222
7
+ data.tar.gz: 5d59e7001c1550101229734a5fac4637a4bb59b74a5392798e83ba54998dfbb28b3768c0ea34c5b77d4ea0bbf55ba9c0352002ad076f2a76e161bdd8d254b50c
@@ -17,7 +17,8 @@ module Formwandler
17
17
  private
18
18
 
19
19
  def _formwandler_load_form
20
- form_instance = form_class.new(models: {inferred_resource_name.to_sym => instance_variable_get("@#{inferred_resource_name}")}, controller: self)
20
+ models = {inferred_resource_name.to_sym => instance_variable_get("@#{inferred_resource_name}")}.compact
21
+ form_instance = form_class.new(models: models, controller: self)
21
22
  instance_variable_set("@#{form_instance_name}", form_instance)
22
23
  end
23
24
 
@@ -1,3 +1,3 @@
1
1
  module Formwandler
2
- VERSION = '0.3.2'
2
+ VERSION = '0.3.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formwandler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Bilharz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-09 00:00:00.000000000 Z
11
+ date: 2017-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails