aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
diff options
context:
space:
mode:
authorBryan Helmkamp <bryan@brynary.com>2009-10-29 14:43:25 -0400
committerBryan Helmkamp <bryan@brynary.com>2009-11-09 14:49:12 -0500
commit17dee01b6f2186888629859fe2e99232225ae5ea (patch)
tree30b501959020d04d13186c246b699531e9640046 /activesupport/lib/active_support
parentafc129e2707daa0de1dd85c0796a1f9d73e7107f (diff)
downloadrails-17dee01b6f2186888629859fe2e99232225ae5ea.tar.gz
rails-17dee01b6f2186888629859fe2e99232225ae5ea.tar.bz2
rails-17dee01b6f2186888629859fe2e99232225ae5ea.zip
Fix Ruby warning: method redefined; discarding old breakpoint
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r--activesupport/lib/active_support/core_ext/kernel/debugger.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/core_ext/kernel/debugger.rb b/activesupport/lib/active_support/core_ext/kernel/debugger.rb
index 0813a51383..59e03e3df7 100644
--- a/activesupport/lib/active_support/core_ext/kernel/debugger.rb
+++ b/activesupport/lib/active_support/core_ext/kernel/debugger.rb
@@ -7,6 +7,7 @@ module Kernel
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)