From 625c88673e90053f898423dfc96bda1d6c0fa8eb Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Tue, 13 Mar 2012 20:52:45 +0100 Subject: short backtrace for errorDetails --- lib/overwrite.rb | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'lib/overwrite.rb') diff --git a/lib/overwrite.rb b/lib/overwrite.rb index 7b6cb4f..97c35aa 100644 --- a/lib/overwrite.rb +++ b/lib/overwrite.rb @@ -78,13 +78,3 @@ module Kernel end end -class Array - def short_backtrace - short = [] - each do |c| - break if c =~ /sinatra\/base/ - short << c - end - short.join("\n") - end -end -- cgit v1.2.3