Permalink
Browse files

Fix Ruby warning: method redefined; discarding old breakpoint

  • Loading branch information...
brynary committed Oct 29, 2009
1 parent 6fdd60e commit d988507dcaa93b7e83bb3f836a4b7d0dac8dfafc
Showing with 1 addition and 0 deletions.
  1. +1 −0 activesupport/lib/active_support/core_ext/kernel/debugger.rb
@@ -7,6 +7,7 @@ def debugger
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)

0 comments on commit d988507

Please sign in to comment.