whoops 0.5.2 → 0.5.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.
@@ -2,7 +2,7 @@ module EventsHelper
|
|
2
2
|
def format_detail(detail)
|
3
3
|
case detail
|
4
4
|
when String, Numeric then detail
|
5
|
-
when Array then "<ul>#{detail.collect{|d| "<li>- #{format_detail(d)}</li>" }.join}</ul>"
|
5
|
+
when Array then "<ul class='array'>#{detail.collect{|d| "<li>- #{format_detail(d)}</li>" }.join}</ul>".html_safe
|
6
6
|
when Hash then detail_table(detail)
|
7
7
|
else
|
8
8
|
detail.to_s
|