提交 4da2d6c1 编写于 作者: J Jamis Buck

Abbreviate RAILS_ROOT in traces


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2688 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 2555b885
*SVN*
* Abbreviate RAILS_ROOT in traces
*1.10.1* (October 19th, 2005)
* Update error trace templates [Nicholas Seckar]
......
......@@ -4,9 +4,14 @@
["Framework Trace", @exception.framework_backtrace],
["Full Trace", @exception.clean_backtrace]
]
if defined?(RAILS_ROOT)
traces.each { |name, trace| trace.map! { |p| p.gsub(/^#{RAILS_ROOT}/, '<b>#{RAILS_ROOT}</b>') } }
end
names = traces.collect {|name, trace| name}
%>
<p><code>RAILS_ROOT: <%= RAILS_ROOT %></code></p>
<div id="traces">
<% names.each do |name| -%>
<%
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册