diff options
author | Josh Kalderimis <josh.kalderimis@gmail.com> | 2011-05-23 15:44:48 +0200 |
---|---|---|
committer | Josh Kalderimis <josh.kalderimis@gmail.com> | 2011-05-23 15:44:48 +0200 |
commit | 2514d65ca2b92f57b52e8027f6ab6fc8601df92f (patch) | |
tree | 8d891c8aeaec33d4b5491bd6231dbfa3e772c820 /activesupport/lib | |
parent | eff5d9aed468e8d6c4ffb103dad8e99b0a65465d (diff) | |
download | rails-2514d65ca2b92f57b52e8027f6ab6fc8601df92f.tar.gz rails-2514d65ca2b92f57b52e8027f6ab6fc8601df92f.tar.bz2 rails-2514d65ca2b92f57b52e8027f6ab6fc8601df92f.zip |
Removed the AS core_ext/kernel/debugger breakpoint method as this method is added by ruby-debug and should be left as is. Missing tests added.
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/core_ext/kernel/debugger.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/activesupport/lib/active_support/core_ext/kernel/debugger.rb b/activesupport/lib/active_support/core_ext/kernel/debugger.rb index 692340c7c7..7516f41e0b 100644 --- a/activesupport/lib/active_support/core_ext/kernel/debugger.rb +++ b/activesupport/lib/active_support/core_ext/kernel/debugger.rb @@ -5,12 +5,6 @@ module Kernel message = "\n***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****\n" defined?(Rails) ? Rails.logger.info(message) : $stderr.puts(message) end - end - - undef :breakpoint if respond_to?(:breakpoint) - def breakpoint - message = "\n***** The 'breakpoint' command has been renamed 'debugger' -- please change *****\n" - defined?(Rails) ? Rails.logger.info(message) : $stderr.puts(message) - debugger + alias breakpoint debugger unless respond_to?(:breakpoint) end end |