Skip to content
This repository
Browse code

Fix Ruby warning: method redefined; discarding old breakpoint

  • Loading branch information...
commit 17dee01b6f2186888629859fe2e99232225ae5ea 1 parent afc129e
Bryan Helmkamp authored October 29, 2009
1  activesupport/lib/active_support/core_ext/kernel/debugger.rb
@@ -7,6 +7,7 @@ def debugger
7 7
     end
8 8
   end
9 9
 
  10
+  undef :breakpoint if respond_to?(:breakpoint)
10 11
   def breakpoint
11 12
     message = "\n***** The 'breakpoint' command has been renamed 'debugger' -- please change *****\n"
12 13
     defined?(Rails) ? Rails.logger.info(message) : $stderr.puts(message)

0 notes on commit 17dee01

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