Permalink
Browse files

in request variables panel, only call "inspect" on Hashes values (too…

… expensive on some objects)
  • Loading branch information...
Noah Davis and Luke Melia
Noah Davis and Luke Melia committed Aug 17, 2010
1 parent 64c67f4 commit b885a085b8fc9d9041244a078113f857c4e756a6
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/rack/bug/views/panels/request_variables.html.erb
@@ -14,7 +14,13 @@
<% sections[header].each do |key, val| %>
<tr class="<%= i % 2 == 0 ? "even" : "odd" %>">
<td><%=h key %></td>
- <td class="code"><div><%=h val.inspect %></div></td>
+ <td class="code"><div>
+ <% if val.is_a?(Hash) %>
+ <%=h val.inspect %>
+ <% else %>
+ <%=h val.to_s %>
+ <% end %>
+ </div></td>
</tr>
<% i += 1 %>
<% end %>

0 comments on commit b885a08

Please sign in to comment.