whoops 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -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
|