diff options
author | Josh Kalderimis <josh.kalderimis@gmail.com> | 2011-05-23 15:31:33 +0200 |
---|---|---|
committer | Josh Kalderimis <josh.kalderimis@gmail.com> | 2011-05-23 15:31:33 +0200 |
commit | eff5d9aed468e8d6c4ffb103dad8e99b0a65465d (patch) | |
tree | 25ac5fe5eb416c1089c277cd398f23856e3a35fd /railties/lib/rails/rack | |
parent | a8b2a895b795b02805a6d6478f7a8c55035e19d4 (diff) | |
download | rails-eff5d9aed468e8d6c4ffb103dad8e99b0a65465d.tar.gz rails-eff5d9aed468e8d6c4ffb103dad8e99b0a65465d.tar.bz2 rails-eff5d9aed468e8d6c4ffb103dad8e99b0a65465d.zip |
Removed AS core_ext/kernel/requires as it's not used and is bad practice.
Diffstat (limited to 'railties/lib/rails/rack')
-rw-r--r-- | railties/lib/rails/rack/debugger.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/railties/lib/rails/rack/debugger.rb b/railties/lib/rails/rack/debugger.rb index 06e23db5f1..831188eeee 100644 --- a/railties/lib/rails/rack/debugger.rb +++ b/railties/lib/rails/rack/debugger.rb @@ -1,5 +1,3 @@ -require 'active_support/core_ext/kernel/requires' - module Rails module Rack class Debugger @@ -8,11 +6,12 @@ module Rails ARGV.clear # clear ARGV so that rails server options aren't passed to IRB - require_library_or_gem 'ruby-debug' + require 'ruby-debug' + ::Debugger.start ::Debugger.settings[:autoeval] = true if ::Debugger.respond_to?(:settings) puts "=> Debugger enabled" - rescue Exception + rescue LoadError puts "You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug'" exit end |