Permalink
Browse files

change array of array to hash

  • Loading branch information...
1 parent fb6c661 commit a7e77c553d01bcf84199a3ca14d6b6964b497a62 @vipulnsward vipulnsward committed Apr 9, 2013
Showing with 4 additions and 6 deletions.
  1. +4 −6 actionpack/lib/action_dispatch/middleware/templates/rescues/_trace.erb
@@ -1,10 +1,8 @@
<%
- traces = [
- ["Application Trace", @application_trace],
- ["Framework Trace", @framework_trace],
- ["Full Trace", @full_trace]
- ]
- names = traces.collect {|name, trace| name}
+ traces = { "Application Trace" => @application_trace,
+ "Framework Trace" => @framework_trace,
+ "Full Trace" => @full_trace }
+ names = traces.keys
%>
<p><code>Rails.root: <%= defined?(Rails) && Rails.respond_to?(:root) ? Rails.root : "unset" %></code></p>

0 comments on commit a7e77c5

Please sign in to comment.