mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Don't do call_stack warning all the time, only if a breakpoint is used.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5392 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
e7eae2bd9b
commit
fa58808d08
1 changed files with 4 additions and 4 deletions
|
@ -21,11 +21,11 @@ if RUBY_VERSION == '1.8.5'
|
|||
require 'rubygems'
|
||||
require 'breakpoint185'
|
||||
rescue LoadError
|
||||
puts 'WARNING: breakpoints will not work with Ruby 1.8.5 without the call_stack gem.'
|
||||
puts ' gem install call_stack or see http://eigenclass.org/hiki.rb?call_stack'
|
||||
def Binding.of_caller(&block)
|
||||
raise 'Breakpoint requires the call_stack gem with Ruby 1.8.5.'
|
||||
return
|
||||
raise x=<<EOS
|
||||
Breakpoints do not work in Ruby 1.8.5 without call_stack.
|
||||
gem install call_stack or see http://eigenclass.org/hiki.rb?call_stack
|
||||
EOS
|
||||
end
|
||||
end
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue