Skip to content
Browse files

deprecate RUBY_IGNORE_CALLERS, fixes #444

  • Loading branch information...
1 parent b363fa7 commit 028c3ae74f24cab2cd2942eed95764862a9b40d7 @rkh rkh committed Mar 7, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/sinatra/base.rb
View
7 lib/sinatra/base.rb
@@ -1343,8 +1343,11 @@ def metadef(message, &block)
/<internal:/ # internal in ruby >= 1.9.2
]
- # add rubinius (and hopefully other VM impls) ignore patterns ...
- CALLERS_TO_IGNORE.concat(RUBY_IGNORE_CALLERS) if defined?(RUBY_IGNORE_CALLERS)
+ # contrary to what the comment said previously, rubinius never supported this
+ if defined?(RUBY_IGNORE_CALLERS)
+ warn "RUBY_IGNORE_CALLERS is deprecated and will no longer be supported by Sinatra 2.0"
+ CALLERS_TO_IGNORE.concat(RUBY_IGNORE_CALLERS)
+ end
# Like Kernel#caller but excluding certain magic entries and without
# line / method information; the resulting array contains filenames only.

0 comments on commit 028c3ae

Please sign in to comment.
Something went wrong with that request. Please try again.