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 | |
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')
-rw-r--r-- | railties/lib/rails/rack/debugger.rb | 7 | ||||
-rw-r--r-- | railties/lib/rails/test_help.rb | 1 |
2 files changed, 3 insertions, 5 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 diff --git a/railties/lib/rails/test_help.rb b/railties/lib/rails/test_help.rb index 41485c8bac..68f566274d 100644 --- a/railties/lib/rails/test_help.rb +++ b/railties/lib/rails/test_help.rb @@ -3,7 +3,6 @@ abort("Abort testing: Your Rails environment is running in production mode!") if Rails.env.production? require 'test/unit' -require 'active_support/core_ext/kernel/requires' require 'active_support/test_case' require 'action_controller/test_case' require 'action_dispatch/testing/integration' |