diff options
author | Bryan Helmkamp <bryan@brynary.com> | 2009-11-29 01:37:50 -0500 |
---|---|---|
committer | Yehuda Katz <wycats@Yehuda-Katz.local> | 2009-11-28 23:41:03 -0800 |
commit | bb84cab2fceb470cd1e7fa1ceeb5e7c4c764f5de (patch) | |
tree | b0d486341629d5cb8f62725bcaee3d15e61303f0 /actionpack | |
parent | 45d8ff08a449d694f33e42ec2f97515d790e3cf7 (diff) | |
download | rails-bb84cab2fceb470cd1e7fa1ceeb5e7c4c764f5de.tar.gz rails-bb84cab2fceb470cd1e7fa1ceeb5e7c4c764f5de.tar.bz2 rails-bb84cab2fceb470cd1e7fa1ceeb5e7c4c764f5de.zip |
Update reference to deprecated constant to avoid warnings
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/templates/rescues/_trace.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/templates/rescues/_trace.erb b/actionpack/lib/action_dispatch/middleware/templates/rescues/_trace.erb index f8f6b424ca..07b4919934 100644 --- a/actionpack/lib/action_dispatch/middleware/templates/rescues/_trace.erb +++ b/actionpack/lib/action_dispatch/middleware/templates/rescues/_trace.erb @@ -7,7 +7,7 @@ names = traces.collect {|name, trace| name} %> -<p><code>RAILS_ROOT: <%= defined?(RAILS_ROOT) ? RAILS_ROOT : "unset" %></code></p> +<p><code>Rails.root: <%= defined?(Rails) && Rails.respond_to?(:root) ? Rails.root : "unset" %></code></p> <div id="traces"> <% names.each do |name| %> |