Permalink
Browse files

Add RUBY_IGNORE_CALLERS to CALLERS_TO_IGNORE

Rubinius sets this to an array of kernel call
path patterns.
  • Loading branch information...
rtomayko committed Apr 30, 2009
1 parent 5d6ac2a commit 043e987a33af962f7d8b59445c807a5d13fc473d
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/sinatra/base.rb
View
@@ -940,6 +940,9 @@ def metadef(message, &block)
/active_support/, # active_support require hacks
] unless self.const_defined?('CALLERS_TO_IGNORE')
+ # add rubinius (and hopefully other VM impls) ignore patterns ...
+ CALLERS_TO_IGNORE.concat(RUBY_IGNORE_CALLERS) if defined?(RUBY_IGNORE_CALLERS)
+
# Like Kernel#caller but excluding certain magic entries and without
# line / method information; the resulting array contains filenames only.
def caller_files

0 comments on commit 043e987

Please sign in to comment.