Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add RUBY_IGNORE_CALLERS to CALLERS_TO_IGNORE

Rubinius sets this to an array of kernel call
path patterns.
  • Loading branch information...
commit 043e987a33af962f7d8b59445c807a5d13fc473d 1 parent 5d6ac2a
@rtomayko rtomayko authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/sinatra/base.rb
View
3  lib/sinatra/base.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.