diff --git a/lib/sinatra/base.rb b/lib/sinatra/base.rb index 1d1c91c2e9..e3c4376ef8 100644 --- a/lib/sinatra/base.rb +++ b/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