formwandler 0.1.0 → 0.1.1

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: 31045e2505c0ef7d1dd3a1f8d104414472f993a3
4
- data.tar.gz: 4832949e084649a57080971ce6b99b9543b0f771
3
+ metadata.gz: 476eb8a281a8d6624f206d805b0c1db600026441
4
+ data.tar.gz: 8ec883f656ab7c7d13f450eae11fcd0ed8763744
5
5
  SHA512:
6
- metadata.gz: dcaa3f9f9759283537aad421362e684d55d7c9f8ea3571d935450950887adb3ed6d7ae2553814f06e05241b64f7164c190572491eb5892e3434bc666dbbdae52
7
- data.tar.gz: 2556aebc204214bd56ad1d7a2a3fa91413011d10620b4d63d678ca42f21498a74cc59d98d96e79bee736302f6c698dd078718b89f260a68bc013ceeaa0f30d52
6
+ metadata.gz: f1f59bfe610bacd695b70e34c698fb0c24f1a6e40b7fc92ee8858062cd65cdcc3699280ab0b1bf34b88f32a08cf8e00ac0bb94e0afd838173d7bf387f8a20c57
7
+ data.tar.gz: d85dd4008af8a61d01f062559e786a0734d46cbf5d9da576005d1fc34e7281a14beda0bc3ecb9e65b571e8b5d6e784f33b3fcbf8000fc82baa280174475c8596
@@ -78,7 +78,7 @@ module Formwandler
78
78
  end
79
79
 
80
80
  def model_instance
81
- form.models[field_definition.model]
81
+ form.models[field_definition.model] if field_definition.model.present?
82
82
  end
83
83
 
84
84
  def _evaluate_field_definition_value(attr_name)
@@ -16,7 +16,7 @@ module Formwandler
16
16
  end
17
17
 
18
18
  def hide_option(name, value = true)
19
- hidden_options[name.to_sym] = value
19
+ hidden_options[name.to_s] = value
20
20
  end
21
21
 
22
22
  def hidden_options
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formwandler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Bilharz
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '5.0'
19
+ version: '5'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '5.0'
26
+ version: '5'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '3'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '3'
41
41
  description: Create form objects for multiple models, dynamically mark fields as hidden
42
42
  or disabled and even hide select options dynamically
43
43
  email: sbilharz@heilmannsoftware.de