tabulatr2 0.8.5 → 0.8.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tabulatr/renderer/column.rb +3 -1
- data/lib/tabulatr/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c394199af7cd91afcc3d220282f9c71e3b14b8a
|
4
|
+
data.tar.gz: 06b5d864aa55794ea9265b632192ccaf2ba4288d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75f35fd84725b18e824da1c48bcca3cdd375814353fd720bfff8634c8b95185cc1e3c5c413225f5bb6ee97c62ac2b97334b2bae3c66c438031e73516412c9ab4
|
7
|
+
data.tar.gz: 36fbc0c0b6bd9796273e56a1dc75a073b2d29996daae39b113471517947529cff28d33cdfccde39ce0bb85ab27f50e97ef9eefccc7127272024ba7721609f646
|
@@ -105,7 +105,9 @@ class Tabulatr::Renderer::Column
|
|
105
105
|
|
106
106
|
def value_for(record, view)
|
107
107
|
if block
|
108
|
-
|
108
|
+
r = view.instance_exec(record, &block)
|
109
|
+
r = r.join(' ').html_safe if r.is_a?(Array)
|
110
|
+
return r
|
109
111
|
end
|
110
112
|
val = principal_value(record) or return ''
|
111
113
|
|
data/lib/tabulatr/version.rb
CHANGED