effective_datatables 4.20.1 → 4.20.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5bfbf37b105594f8effdd8c1ca01f55e377cb3a9b011acdb200c7feef5a7e3cf
|
4
|
+
data.tar.gz: 8a72ea83642057838ecb2161693d2ce5f82ad194b6a47e6965df5f2dda48d902
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d494134ece7fd837e979d2d4e5206745c756e1d89a1e8a521fb33f897cd7a60ea329636ca2e2ec5287d2f70c1359ec0fee413a6ee04466c88cb2974ab6c805e
|
7
|
+
data.tar.gz: 0f55926b63825664257310ebe7de15a39b129a5a882439cf34f78fc0158b4f2bf64138f9fe3966950d9caa21e1f57a0cb3dbec8c88aa6e428d745dca167e3cfe
|
@@ -142,20 +142,24 @@ module Effective
|
|
142
142
|
when :time
|
143
143
|
value.respond_to?(:strftime) ? value.strftime(EffectiveDatatables.format_time) : BLANK
|
144
144
|
when :text
|
145
|
+
value_to_s = value.to_s
|
146
|
+
|
145
147
|
if csv
|
146
|
-
|
147
|
-
elsif
|
148
|
-
view.sanitize(
|
148
|
+
value_to_s
|
149
|
+
elsif value_to_s.starts_with?('<') && value_to_s.ends_with?('>')
|
150
|
+
view.sanitize(value_to_s)
|
149
151
|
else
|
150
|
-
view.simple_format(
|
152
|
+
view.simple_format(value_to_s)
|
151
153
|
end
|
152
154
|
when :string
|
155
|
+
value_to_s = value.to_s
|
156
|
+
|
153
157
|
if csv
|
154
|
-
|
155
|
-
elsif
|
156
|
-
view.sanitize(
|
158
|
+
value_to_s
|
159
|
+
elsif value_to_s.starts_with?('<') && value_to_s.ends_with?('>')
|
160
|
+
view.sanitize(value_to_s)
|
157
161
|
else
|
158
|
-
view.escape_once(
|
162
|
+
view.escape_once(value_to_s)
|
159
163
|
end
|
160
164
|
else
|
161
165
|
value.to_s
|