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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf622e9dea142e6cd18d422f30446995fabff88afb88d60b92a5e1604d684f48
4
- data.tar.gz: 5f9679e1bdd4605e79a4d59c374d45c8511bc700ee689fd7c0d3245f26ae01a2
3
+ metadata.gz: b46e1601a47190eba54fa3804050d1fe7d4e41c59103c00d15bc6521a4821abf
4
+ data.tar.gz: 1e8d951d30d7a8f6e2e35da527cfe488a04e1c427b497d9614678812ec1a6c74
5
5
  SHA512:
6
- metadata.gz: 5f01ad97aa7ec33468d219cf2ff492aba96bb8ea7d65d4a177db7b9d31a0207dfe183bed2b67b4702a646b310b2c756098331667769e788455e763d906dd78fb
7
- data.tar.gz: 7d7dac488acd94aae48fba8acbf7cab0be698211ac721896a9425fd92ffc51a59d89f4e594a56b1296e0ba9f522764a0f750b4d5eb5e1b36ff131faee660e74b
6
+ metadata.gz: a7c2ae42c1fc4d80a5f55177999d820f60c7ff8cbb7088084bffc6fcb4c53cc8119756401de03c29898f99c14573d8cc5d119af53690e557598307c02a0ba90e
7
+ data.tar.gz: 3da9356128a9b8c475181e2615326703ae5ab5f7b1a10e7cbfea03f0e19459013b0137855339eb0263e0778750cf1d472be67ed4b8379bb67b19c604d730bdf8
data/README.md CHANGED
@@ -194,6 +194,7 @@ append: nil
194
194
  prepend: nil
195
195
  help: nil
196
196
  check_inline: false
197
+ custom_control: false
197
198
  ```
198
199
 
199
200
  Options applied on the form level will apply to all field helpers. Options
@@ -224,13 +224,11 @@ module BootstrapForm
224
224
  def form_group(options = {})
225
225
  bootstrap = form_bootstrap.scoped(options.delete(:bootstrap))
226
226
 
227
- label_text = bootstrap.label[:text]
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)
@@ -1,5 +1,5 @@
1
1
  module BootstrapForm
2
2
 
3
- VERSION = "4.0.2".freeze
3
+ VERSION = "4.0.3".freeze
4
4
 
5
5
  end
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.2
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-02 00:00:00.000000000 Z
11
+ date: 2018-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails