railsui 3.3.2 → 3.3.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/Gemfile.lock +1 -1
- data/lib/railsui/form_builder.rb +8 -1
- data/lib/railsui/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: 91c80ec9979b1733f5b8386293ea0ea811914183990c21a9cbdf32f9a2f70499
|
|
4
|
+
data.tar.gz: 82772b01f627598e260a2eb99839b4507ad416ed72ccb5d00d120de50dc92f4e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 11d7b0cbb59d10e6df02d28ea05659c4dc04bd9f3b4ce4033e12f1432c970093f0ad7be3e128c1e29e006f8077e99a5edc4c80869495ec181e718d157636cbfe
|
|
7
|
+
data.tar.gz: 8a80e1564b7cf72c06e348f12956e75fd52e1ba4b5702f8b4f65c1346e08c3bcacfcdea9e0ab6af58469f79877daa573b0d60d7ec3017ec300075e1263066235
|
data/Gemfile.lock
CHANGED
data/lib/railsui/form_builder.rb
CHANGED
|
@@ -252,12 +252,19 @@ module Railsui
|
|
|
252
252
|
private
|
|
253
253
|
|
|
254
254
|
def field_wrapper(method, options = {}, &block)
|
|
255
|
-
wrapper_options = options.delete(:wrapper)
|
|
255
|
+
wrapper_options = options.delete(:wrapper)
|
|
256
256
|
label_text = options.delete(:label)
|
|
257
257
|
help_text = options.delete(:help)
|
|
258
258
|
skip_label = options.delete(:skip_label) || false
|
|
259
259
|
is_required = options[:required] || false
|
|
260
260
|
|
|
261
|
+
# If wrapper is explicitly false, just return the field without wrapping
|
|
262
|
+
if wrapper_options == false
|
|
263
|
+
return capture(&block)
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
wrapper_options ||= {}
|
|
267
|
+
|
|
261
268
|
form_group(method, wrapper_options) do
|
|
262
269
|
elements = []
|
|
263
270
|
|
data/lib/railsui/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: railsui
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.3.
|
|
4
|
+
version: 3.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andy Leverenz
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-01-
|
|
10
|
+
date: 2026-01-17 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: rails
|