comfy_bootstrap_form 4.0.2 → 4.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/bootstrap_form/form_builder.rb +2 -4
- data/lib/bootstrap_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: b46e1601a47190eba54fa3804050d1fe7d4e41c59103c00d15bc6521a4821abf
|
|
4
|
+
data.tar.gz: 1e8d951d30d7a8f6e2e35da527cfe488a04e1c427b497d9614678812ec1a6c74
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a7c2ae42c1fc4d80a5f55177999d820f60c7ff8cbb7088084bffc6fcb4c53cc8119756401de03c29898f99c14573d8cc5d119af53690e557598307c02a0ba90e
|
|
7
|
+
data.tar.gz: 3da9356128a9b8c475181e2615326703ae5ab5f7b1a10e7cbfea03f0e19459013b0137855339eb0263e0778750cf1d472be67ed4b8379bb67b19c604d730bdf8
|
data/README.md
CHANGED
|
@@ -224,13 +224,11 @@ module BootstrapForm
|
|
|
224
224
|
def form_group(options = {})
|
|
225
225
|
bootstrap = form_bootstrap.scoped(options.delete(:bootstrap))
|
|
226
226
|
|
|
227
|
-
|
|
227
|
+
label_options = bootstrap.label.clone
|
|
228
|
+
label_text = label_options.delete(:text)
|
|
228
229
|
|
|
229
230
|
label =
|
|
230
231
|
if label_text.present?
|
|
231
|
-
label_options = {}
|
|
232
|
-
add_css_class!(label_options, bootstrap.label[:class])
|
|
233
|
-
|
|
234
232
|
if bootstrap.horizontal?
|
|
235
233
|
add_css_class!(label_options, "col-form-label")
|
|
236
234
|
add_css_class!(label_options, bootstrap.label_col_class)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: comfy_bootstrap_form
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.0.
|
|
4
|
+
version: 4.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Oleg Khabarov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-03-
|
|
11
|
+
date: 2018-03-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|