diff options
author | Vipul A M <vipulnsward@gmail.com> | 2013-04-09 10:49:18 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2013-04-09 11:17:08 +0530 |
commit | a7e77c553d01bcf84199a3ca14d6b6964b497a62 (patch) | |
tree | 313790b05b42f9318985c26ca3c1226a2c0817c3 /actionpack | |
parent | fb6c661fe946dc899b15d15b92cc8cf9a21d424e (diff) | |
download | rails-a7e77c553d01bcf84199a3ca14d6b6964b497a62.tar.gz rails-a7e77c553d01bcf84199a3ca14d6b6964b497a62.tar.bz2 rails-a7e77c553d01bcf84199a3ca14d6b6964b497a62.zip |
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> |