diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-04 15:12:24 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-04 15:54:22 -0300 |
commit | 93559da4826546d07014f8cfa399b64b4a143127 (patch) | |
tree | 6982c16196765b6b5ef4be3cbc3a95d26decc269 /railties/lib/rails/commands/console.rb | |
parent | cf01d01bd908d09e4638c85d49b92cb5c41c65a7 (diff) | |
download | rails-93559da4826546d07014f8cfa399b64b4a143127.tar.gz rails-93559da4826546d07014f8cfa399b64b4a143127.tar.bz2 rails-93559da4826546d07014f8cfa399b64b4a143127.zip |
Remove debugger support
bebugger doesn't work with Ruby 2.2 so we don't need to support it
anymore
Diffstat (limited to 'railties/lib/rails/commands/console.rb')
-rw-r--r-- | railties/lib/rails/commands/console.rb | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/railties/lib/rails/commands/console.rb b/railties/lib/rails/commands/console.rb index 96ced3c2f9..35a815a34f 100644 --- a/railties/lib/rails/commands/console.rb +++ b/railties/lib/rails/commands/console.rb @@ -18,14 +18,6 @@ module Rails opt.on("-e", "--environment=name", String, "Specifies the environment to run this console under (test/development/production).", "Default: development") { |v| options[:environment] = v.strip } - opt.on("--debugger", 'Enables the debugger.') do |v| - if RUBY_VERSION < '2.0.0' - options[:debugger] = v - else - puts "=> Notice: debugger option is ignored since Ruby 2.0 and " \ - "it will be removed in future versions." - end - end opt.parse!(arguments) end @@ -76,25 +68,7 @@ module Rails Rails.env = environment end - if RUBY_VERSION < '2.0.0' - def debugger? - options[:debugger] - end - - def require_debugger - require 'debugger' - puts "=> Debugger enabled" - rescue LoadError - puts "You're missing the 'debugger' gem. Add it to your Gemfile, bundle it and try again." - exit(1) - end - end - def start - if RUBY_VERSION < '2.0.0' - require_debugger if debugger? - end - set_environment! if environment? if sandbox? |