effective_bootstrap 1.14.0 → 1.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/effective/table_rows/collection.rb +11 -0
- data/lib/effective_bootstrap/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: 7a86c836f07d4b63af508927ea609571c6c107588820c7e437ad962136fc14fe
|
4
|
+
data.tar.gz: f5b0450942b4f101eadb2c4c22afc52985a25ad14ea783b2e2ed53990d7be553
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5749c016c72772157d0a7a7f5e48db293b82136ae73b7d22e25d7b0656007d42dec0b88e13feef1e31e9d6a705949a4bf23ea69459286897568f977905c4177d
|
7
|
+
data.tar.gz: 56f254ddbaff26b3cb076259fd87ab04342a7e2a75b9a35a5149a7ee1461b91b86efa514211443460c59ea39f4ebfbf0c9d588391b1b4f66f7cf5175a86a79df
|
@@ -9,6 +9,17 @@ module Effective
|
|
9
9
|
super(name, options, builder: builder)
|
10
10
|
end
|
11
11
|
|
12
|
+
def content
|
13
|
+
values = Array(value) - [nil, '']
|
14
|
+
|
15
|
+
if values.length > 1
|
16
|
+
values.map { |v| content_tag(:div, v) }.join.html_safe
|
17
|
+
elsif values.length == 1
|
18
|
+
values.first
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
|
12
23
|
end
|
13
24
|
end
|
14
25
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_bootstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.14.
|
4
|
+
version: 1.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|