Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix Ruby warning: method redefined; discarding old breakpoint

  • Loading branch information...
commit d988507dcaa93b7e83bb3f836a4b7d0dac8dfafc 1 parent 6fdd60e
Bryan Helmkamp brynary authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  activesupport/lib/active_support/core_ext/kernel/debugger.rb
1  activesupport/lib/active_support/core_ext/kernel/debugger.rb
View
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.