Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

… expensive on some objects)
  • Loading branch information...
commit b885a085b8fc9d9041244a078113f857c4e756a6 1 parent 64c67f4
Noah Davis and Luke Melia authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/rack/bug/views/panels/request_variables.html.erb
View
8 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 %>
Please sign in to comment.
Something went wrong with that request. Please try again.