flyingmachine/whoops — pull request #12 by fermion (2012-12-18 18:37:08+00:00)
Title: Fix whoops exception calling .html_safe on Fixnum

I saw the following after upgrading our whoops version when trying to view an event:

ActionView::Template::Error (undefined method `html_safe' for 60156582:Fixnum):
2: - detail.to_a.sort{|a,b| a[0] <=> b[0]}.each do |sub_detail|
3: %li
4: %span.key= sub_detail.first + ":"
5: = format_detail(sub_detail.last).html_safe

The other paths through the case statement already call .html_safe on their String return values, simple Strings should too. No?