Permalink
Browse files

Fix Ruby warning: method redefined; discarding old breakpoint

  • Loading branch information...
1 parent afc129e commit 17dee01b6f2186888629859fe2e99232225ae5ea @brynary brynary committed Oct 29, 2009
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 17dee01

Please sign in to comment.