提交 724151d8 编写于 作者: J Jeremy Kemper 提交者: Yehuda Katz

Clean trailing / after rails root from backtraces

上级 feb807dd
......@@ -15,7 +15,7 @@ class BacktraceCleaner < ActiveSupport::BacktraceCleaner
def initialize
super
add_filter { |line| line.sub(RAILS_ROOT, '') }
add_filter { |line| line.sub("#{RAILS_ROOT}/", '') }
add_filter { |line| line.sub(ERB_METHOD_SIG, '') }
add_filter { |line| line.sub('./', '/') } # for tests
add_filter { |line| line.sub(/(#{GEMS_DIR})\/gems\/([a-z]+)-([0-9.]+)\/(.*)/, '\2 (\3) \4')} # http://gist.github.com/30430
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册