Permalink
Browse files

Make ruby-debug optional

  • Loading branch information...
1 parent ca0530a commit 64c9a40137e96710f93afe1bda907b3e9f7b3013 @jeremy jeremy committed May 1, 2009
Showing with 5 additions and 2 deletions.
  1. +5 −2 activerecord/test/cases/helper.rb
View
7 activerecord/test/cases/helper.rb
@@ -15,8 +15,11 @@
require 'cases/repair_helper'
-# TODO remove the debugger
-require 'ruby-debug'
+# Expose the debugger if available
+begin
+ require 'ruby-debug'
+rescue LoadError
+end
# Show backtraces for deprecated behavior for quicker cleanup.
ActiveSupport::Deprecation.debug = true

0 comments on commit 64c9a40

Please sign in to comment.