whoops 0.5.1 → 0.5.2

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 simple_format(detail.join("\n"), :class => "simple")
5
+ when Array then "<ul>#{detail.collect{|d| "<li>- #{format_detail(d)}</li>" }.join}</ul>"
6
6
  when Hash then detail_table(detail)
7
7
  else
8
8
  detail.to_s
@@ -12,7 +12,7 @@ module EventsHelper
12
12
  def detail_table(detail)
13
13
  render :partial => 'events/detail', :object => detail
14
14
  end
15
-
15
+
16
16
  def breadcrumbs(*groups)
17
17
  breadcrumbs = ""
18
18
  groups.each do |group|
@@ -2,4 +2,4 @@
2
2
  - detail.to_a.sort{|a,b| a[0] <=> b[0]}.each do |sub_detail|
3
3
  %li
4
4
  %span.key= sub_detail.first + ":"
5
- = format_detail(sub_detail.last)
5
+ = format_detail(sub_detail.last).html_safe
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whoops
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: