diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-04-09 05:24:53 -0700 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-04-09 05:24:53 -0700 |
commit | d20c3204bf99d7828be101519d6711dc5f26d2ce (patch) | |
tree | 9ca0d8278bc28e8a98b6b4a69589a1ca4a3d007c /actionpack | |
parent | 817e8fad5a84569729ae65fbd713274678c68d8f (diff) | |
parent | a7e77c553d01bcf84199a3ca14d6b6964b497a62 (diff) | |
download | rails-d20c3204bf99d7828be101519d6711dc5f26d2ce.tar.gz rails-d20c3204bf99d7828be101519d6711dc5f26d2ce.tar.bz2 rails-d20c3204bf99d7828be101519d6711dc5f26d2ce.zip |
Merge pull request #10148 from vipulnsward/traces_change
change array of array to hash
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/templates/rescues/_trace.erb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/templates/rescues/_trace.erb b/actionpack/lib/action_dispatch/middleware/templates/rescues/_trace.erb index 9d947aea40..b181909bff 100644 --- a/actionpack/lib/action_dispatch/middleware/templates/rescues/_trace.erb +++ b/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> |