fi_form 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fi_form/builder.rb +4 -0
- data/lib/fi_form/builder_extensions/active_record.rb +1 -1
- data/lib/fi_form/configuration.rb +2 -2
- data/lib/fi_form/renderer.rb +3 -2
- data/lib/fi_form/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5da069ba322494c6e20141ee9531abffb41e7690036182ae19ee75ecb1628086
|
4
|
+
data.tar.gz: 23246618ec37f5716c571f6df8cd3214f28a3aedf41dee15a415eb14214d8ae6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bf4e47ef335dbf26a6e5d7c313473a8bf9c0186c05516b79291c4dc2ac82a9c057f0d960b68e1a3910382dc63c01585008c48f00164afd49d8f3eb8f16c0cc8
|
7
|
+
data.tar.gz: a423264a3bb355927fedd2cf153374c7daabd9a0107afaf9dc32bce0bd633925a9bef1061358157cb9372681a18fa3bd6de08a38cdc2dfe2df56574b7193fe6c
|
data/lib/fi_form/builder.rb
CHANGED
@@ -15,7 +15,7 @@ module FiForm::BuilderExtensions
|
|
15
15
|
add(:blue_print, items: builder.form.items)
|
16
16
|
end
|
17
17
|
|
18
|
-
add(:fields_for, field: field, blue_print: blue_print).add_children(indent: indent) do
|
18
|
+
add(:fields_for, options.merge(field: field, blue_print: blue_print)).add_children(indent: indent) do
|
19
19
|
# capture fields for every existing record
|
20
20
|
resource.public_send(field).each do |sub_resource|
|
21
21
|
builder = sub_builder(sub_resource, &block)
|
@@ -22,7 +22,7 @@ module FiForm
|
|
22
22
|
|
23
23
|
# add custom behaviour
|
24
24
|
def add_builder_method(name, &block)
|
25
|
-
FiForm::Builder.
|
25
|
+
FiForm::Builder.add_builder_method name, &block
|
26
26
|
end
|
27
27
|
|
28
28
|
# fetch a renderer. if none is specified, the default or debug renderer will be returned
|
@@ -33,7 +33,7 @@ module FiForm
|
|
33
33
|
|
34
34
|
# reload renderer classes in development
|
35
35
|
def reload!
|
36
|
-
self.renderers = self.renderers.map{|k, klass| [k, klass.to_s.constantize] }.to_h
|
36
|
+
self.renderers = self.renderers.map{|k, klass| [k, klass.to_s.constantize] }.to_h # uncovered
|
37
37
|
end
|
38
38
|
|
39
39
|
protected
|
data/lib/fi_form/renderer.rb
CHANGED
data/lib/fi_form/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fi_form
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Pauly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|