diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2009-11-23 15:36:48 -0600 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2009-11-23 15:36:48 -0600 |
commit | 35eda7d6d2ea13b4e42eeea9f11245e22c245fc2 (patch) | |
tree | ce4189f1d07c659d8ef3ec220cba511c52c98e93 /railties/lib/rails/rack | |
parent | 78790e47b8603917e2f2352f973a2de7769cb74b (diff) | |
download | rails-35eda7d6d2ea13b4e42eeea9f11245e22c245fc2.tar.gz rails-35eda7d6d2ea13b4e42eeea9f11245e22c245fc2.tar.bz2 rails-35eda7d6d2ea13b4e42eeea9f11245e22c245fc2.zip |
Fixed that the debugger wouldn't go into IRB mode because of left-over ARGVs [DHH]
Diffstat (limited to 'railties/lib/rails/rack')
-rw-r--r-- | railties/lib/rails/rack/debugger.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/lib/rails/rack/debugger.rb b/railties/lib/rails/rack/debugger.rb index aa2711c616..0a7b405553 100644 --- a/railties/lib/rails/rack/debugger.rb +++ b/railties/lib/rails/rack/debugger.rb @@ -4,6 +4,8 @@ module Rails def initialize(app) @app = app + ARGV.clear # clear ARGV so that script/server options aren't passed to IRB + require_library_or_gem 'ruby-debug' ::Debugger.start ::Debugger.settings[:autoeval] = true if ::Debugger.respond_to?(:settings) |